summaryrefslogtreecommitdiffstats
path: root/Hashtable.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-01-16 18:51:16 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-01-16 18:51:16 -0200
commit76a715ee8c8c8ace5a341d81ca39dd1747886187 (patch)
tree827aed752113618de0b2ba09ed0bb3edc0a9968a /Hashtable.c
parentc1e0f6e17c16236d68ed26a5e413e9234293f4d9 (diff)
Fix order of calloc arguments.
(Patch by Dawid Gajownik)
Diffstat (limited to 'Hashtable.c')
-rw-r--r--Hashtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Hashtable.c b/Hashtable.c
index 9d84db8a..0f61519e 100644
--- a/Hashtable.c
+++ b/Hashtable.c
@@ -76,7 +76,7 @@ Hashtable* Hashtable_new(int size, bool owner) {
this = (Hashtable*) malloc(sizeof(Hashtable));
this->items = 0;
this->size = size;
- this->buckets = (HashtableItem**) calloc(sizeof(HashtableItem*), size);
+ this->buckets = (HashtableItem**) calloc(size, sizeof(HashtableItem*));
this->owner = owner;
assert(Hashtable_isConsistent(this));
return this;

© 2014-2024 Faster IT GmbH | imprint | privacy policy