summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-04-05 09:21:24 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-04-05 09:21:24 +0000
commitbdd253e4505643808eb5d30a18a727683aada5e5 (patch)
tree2e465cd3b7d5f61f9eb318c1675ef27e164098de /coreutils
parent7d6c9296e7154ef131c318588e66044f71081a05 (diff)
downloadbusybox-w32-bdd253e4505643808eb5d30a18a727683aada5e5.tar.gz
busybox-w32-bdd253e4505643808eb5d30a18a727683aada5e5.tar.bz2
busybox-w32-bdd253e4505643808eb5d30a18a727683aada5e5.zip
- 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.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/du.c6
1 files changed, 2 insertions, 4 deletions
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)
235 total += du(*argv); 235 total += du(*argv);
236 slink_depth = slink_depth_save; 236 slink_depth = slink_depth_save;
237 } while (*++argv); 237 } while (*++argv);
238#if ENABLE_FEATURE_CLEAN_UP 238 if (ENABLE_FEATURE_CLEAN_UP)
239 reset_ino_dev_hashtable(); 239 reset_ino_dev_hashtable();
240#endif
241
242 if (print_final_total) { 240 if (print_final_total) {
243 print(total, "total"); 241 print(total, "total");
244 } 242 }