summaryrefslogtreecommitdiff
path: root/ecp/src/htable/hashtable_itr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/src/htable/hashtable_itr.c')
-rwxr-xr-xecp/src/htable/hashtable_itr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ecp/src/htable/hashtable_itr.c b/ecp/src/htable/hashtable_itr.c
index 51ce0d2..e77bbb0 100755
--- a/ecp/src/htable/hashtable_itr.c
+++ b/ecp/src/htable/hashtable_itr.c
@@ -104,6 +104,7 @@ hashtable_iterator_remove(struct hashtable_itr *itr)
int ret;
e = hashtable_iterator_entry(itr);
+ if (NULL == e) return 0; /* stupidity check */
ret = hashtable_iterator_remove_static(itr);
freekey(e->k);
free(e);