diff options
author | Jim Meyering <jim@meyering.net> | 2001-11-01 15:55:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-11-01 15:55:53 +0000 |
commit | 623af67cdd2b24da1bdc090c5c3892ba3f9b152e (patch) | |
tree | cffca6fed91c67271b26bd9388bdf1e6df63ca11 | |
parent | 9be083d50030239015630721e43dfa3bf68b51c4 (diff) | |
download | gnulib-623af67cdd2b24da1bdc090c5c3892ba3f9b152e.tar.gz |
(hash_print) [TESTING]: Clean up.
-rw-r--r-- | lib/hash.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); } } } |