projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented calculation of percentiles and Tukey hinges
[pspp-builds.git]
/
src
/
hash.c
diff --git
a/src/hash.c
b/src/hash.c
index a73256589ab69d55fce8252be7fa16074f0834a0..2544a75d0dcd025f82668bfc24a47dfaeb2ad70c 100644
(file)
--- a/
src/hash.c
+++ b/
src/hash.c
@@
-142,7
+142,9
@@
hsh_create (int size, hsh_compare_func *compare, hsh_hash_func *hash,
struct hsh_table *h;
int i;
struct hsh_table *h;
int i;
- assert (size > 0);
+ if ( size == 0 )
+ return NULL;
+
assert (compare != NULL);
assert (hash != NULL);
assert (compare != NULL);
assert (hash != NULL);