projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9be083d
)
(hash_print) [TESTING]: Clean up.
author
Jim Meyering
<jim@meyering.net>
Thu, 1 Nov 2001 15:55:53 +0000
(15:55 +0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 1 Nov 2001 15:55:53 +0000
(15:55 +0000)
lib/hash.c
patch
|
blob
|
history
diff --git
a/lib/hash.c
b/lib/hash.c
index a94a5495a1e6169271286568bd7908aed9dfafa4..8ba1344c9430561177e7d948cbba1ea334d0f052 100644
(file)
--- 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",
slo
t);
+ printf ("%d:\n",
bucket - table->bucke
t);
for (cursor = bucket; cursor; cursor = cursor->next)
{
char *s = (char *) cursor->data;
/* FIXME */
- printf (" %s\n", s);
+ if (s)
+ printf (" %s\n", s);
}
}
}