projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Rewrote most of the examine command.
[pspp-builds.git]
/
src
/
hash.c
diff --git
a/src/hash.c
b/src/hash.c
index 588b311b45774c37cc52d5476b4a79b24b589b17..a73256589ab69d55fce8252be7fa16074f0834a0 100644
(file)
--- a/
src/hash.c
+++ b/
src/hash.c
@@
-175,6
+175,8
@@
hsh_clear (struct hsh_table *h)
for (i = 0; i < h->size; i++)
h->entries[i] = NULL;
+
+ h->used = 0;
}
/* Destroys table H and all its contents. */
@@
-259,6
+261,9
@@
comparison_helper (const void *a_, const void *b_, void *h_)
void *const *b = b_;
struct hsh_table *h = h_;
+ assert(a);
+ assert(b);
+
return h->compare (*a, *b, h->aux);
}