From 49e8e02b777edc25fe27c9f382bfc6147e88d52b Mon Sep 17 00:00:00 2001 From: vit9696 Date: Wed, 10 Oct 2018 17:23:45 +0300 Subject: [PATCH] Remove debug code added by mistake --- UEFIExtract/ffsdumper.cpp | 1 - common/filesystem.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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);