diff --git a/UEFIExtract/ffsdumper.cpp b/UEFIExtract/ffsdumper.cpp index 61d7794..367e0ab 100644 --- a/UEFIExtract/ffsdumper.cpp +++ b/UEFIExtract/ffsdumper.cpp @@ -72,7 +72,6 @@ USTATUS FfsDumper::recursiveDump(const UModelIndex & index, const UString & path else filename = usprintf("%s/body_%d.bin", path.toLocal8Bit(), counterBody); counterBody++; - errno = 0; std::ofstream file(filename.toLocal8Bit(), std::ofstream::binary); if (!file) return U_FILE_OPEN; diff --git a/common/filesystem.h b/common/filesystem.h index eb67f65..a307aa1 100644 --- a/common/filesystem.h +++ b/common/filesystem.h @@ -59,7 +59,7 @@ static inline bool changeDirectory(const UString & dir) { } static inline UString getAbsPath(const UString & path) { - char abs[PATH_MAX] = {}; + char abs[PATH_MAX] = {}; // Last is a non-standard extension for non-existent files. if (realpath(path.toLocal8Bit(), abs) || abs[0] != '\0') return UString(abs);