From: Jim Meyering Date: Thu, 1 Nov 2001 15:55:53 +0000 (+0000) Subject: (hash_print) [TESTING]: Clean up. X-Git-Tag: FILEUTILS-4_1_1~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74b63f68dd857e3cf675371b6ef6ec30c2b14f5e;p=thirdparty%2Fcoreutils.git (hash_print) [TESTING]: Clean up. --- diff --git a/lib/hash.c b/lib/hash.c index a94a5495a1..8ba1344c94 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -995,13 +995,14 @@ hash_print (const Hash_table *table) struct hash_entry *cursor; if (bucket) - printf ("%d:\n", slot); + printf ("%d:\n", bucket - table->bucket); for (cursor = bucket; cursor; cursor = cursor->next) { char *s = (char *) cursor->data; /* FIXME */ - printf (" %s\n", s); + if (s) + printf (" %s\n", s); } } }