Log read failures from hashmap too.

This commit is contained in:
Unknown W. Brackets committed 2015-04-08 12:10:45 -07:00
1 parent afe42fa505
commit 8e8a18e9b5
1 file changed
+3 -1
+3 -1
View File
@@ -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;
}