From eded3f166c77be106da452fd26d8bf331a268247 Mon Sep 17 00:00:00 2001 From: localhorst Date: Sun, 7 Dec 2025 18:52:10 +0100 Subject: [PATCH] Revert "Unchecked popen/pclose Return Values" This reverts commit bcabad06206db0cac12a2ec758c5b428a8757a1c. --- src/reHDD.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/reHDD.cpp b/src/reHDD.cpp index 38850e8..8083925 100644 --- a/src/reHDD.cpp +++ b/src/reHDD.cpp @@ -405,7 +405,6 @@ void reHDD::filterIgnoredDrives(list *plistDrives) FILE *outputfileBlkid = popen(sCMD.c_str(), "r"); // get UUID from drive if (outputfileBlkid == NULL) { - pclose(outputfileBlkid); exit(EXIT_FAILURE); } @@ -685,7 +684,6 @@ bool reHDD::getSystemDrive(string &systemDrive) if (outputfileHwinfo == NULL) { Logger::logThis()->error("Unable to scan attached drives for system drive"); - pclose(outputfileHwinfo); exit(EXIT_FAILURE); }