Update hashmap before deciding to abort.

Otherwise, if you delete it, it can never generate one.
This commit is contained in:
Unknown W. Brackets 2013-12-27 00:29:37 -08:00
parent 0f3c9ca92f
commit bde1d14f25

View File

@ -547,7 +547,8 @@ skip:
if (filename.empty())
filename = hashmapFileName;
if (!hashMap.size()) {
UpdateHashMap();
if (hashMap.empty()) {
return;
}
@ -557,8 +558,6 @@ skip:
return;
}
UpdateHashMap();
for (auto it = hashMap.begin(), end = hashMap.end(); it != end; ++it) {
const HashMapFunc &mf = *it;
if (fprintf(file, "%016llx:%d = %s\n", mf.hash, mf.size, mf.name) <= 0) {