Fix error handling if shred failes #96

Merged
localhorst merged 3 commits from bugfix/shred-failed into master 2026-05-01 13:12:40 +02:00
Showing only changes of commit add2d3ba30 - Show all commits
+2 -1
View File
@@ -72,7 +72,8 @@ int Shred::shredDrive(Drive *drive, int *ipSignalFd)
#endif
#ifndef DRYRUN
const char *cpDrivePath = drive->getPath().c_str();
string sDrivePath = drive->getPath();
const char *cpDrivePath = sDrivePath.c_str();
unsigned char ucKey[TFNG_KEY_SIZE];
// Open random source