Initialized argument pointer values with zeroes in hashtable_get_stats.

This commit is contained in:
VilhoRaatikka 2014-02-11 15:22:52 +02:00
parent 83bdc15b54
commit cb20f8ab8d
2 changed files with 5 additions and 4 deletions

View File

@ -377,7 +377,8 @@ void hashtable_get_stats(
ht = (HASHTABLE *)table;
CHK_HASHTABLE(ht);
*nelems = 0;
*longest = 0;
hashtable_read_lock(ht);
for (i = 0; i < ht->hashsize; i++)

View File

@ -31,10 +31,10 @@ runtests:
@echo $(shell date) >> $(TESTLOG)
@echo "Test MaxScale core" >> $(TESTLOG)
@echo "-------------------------------" >> $(TESTLOG)
@-./testhash 2>> $(TESTLOG)
ifeq ($?, 0)
@ -./testhash 2>> $(TESTLOG)
ifeq ($?,0)
@echo "MaxScale core PASSED" >> $(TESTLOG)
else
@echo "MaxScale core FAILED" >> $(TESTLOG)
@echo "MaxScale core FAILED" >> $(TESTLOG)
endif
@echo "" >> $(TESTLOG)