From bdd253e4505643808eb5d30a18a727683aada5e5 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 5 Apr 2007 09:21:24 +0000 Subject: - 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. --- coreutils/du.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'coreutils/du.c') diff --git a/coreutils/du.c b/coreutils/du.c index e5fe5ffe2..e95f3a2f1 100644 --- a/coreutils/du.c +++ b/coreutils/du.c @@ -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"); } -- cgit v1.2.3