- fix segfault in reset_ino_dev_hashtable() when *hashtable was null.

Seen in the testsuite for du -l .../testsuite on exit with CLEAN_UP enabled.
This commit is contained in:
Bernhard Reutner-Fischer
2007-04-05 09:21:24 +00:00
parent 7d6c9296e7
commit bdd253e450
2 changed files with 5 additions and 5 deletions

View File

@@ -235,10 +235,8 @@ int du_main(int argc, char **argv)
total += du(*argv);
slink_depth = slink_depth_save;
} while (*++argv);
#if ENABLE_FEATURE_CLEAN_UP
reset_ino_dev_hashtable();
#endif
if (ENABLE_FEATURE_CLEAN_UP)
reset_ino_dev_hashtable();
if (print_final_total) {
print(total, "total");
}