From 8e8a18e9b513acaaa197580957e63bebf8453838 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 8 Apr 2015 12:10:45 -0700 Subject: [PATCH] Log read failures from hashmap too. --- Core/MIPS/MIPSAnalyst.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/MIPS/MIPSAnalyst.cpp b/Core/MIPS/MIPSAnalyst.cpp index 2a56679f2f..913e7099eb 100644 --- a/Core/MIPS/MIPSAnalyst.cpp +++ b/Core/MIPS/MIPSAnalyst.cpp @@ -1287,7 +1287,9 @@ skip: mf.hardcoded = false; if (fscanf(file, "%llx:%d = %63s\n", &mf.hash, &mf.size, mf.name) < 3) { char temp[1024]; - fgets(temp, 1024, file); + if (!fgets(temp, 1024, file)) { + WARN_LOG(LOADER, "Could not read from hash map: %s", filename.c_str()); + } continue; }