Initialized argument pointer values with zeroes in hashtable_get_stats.
This commit is contained in:
@ -377,7 +377,8 @@ void hashtable_get_stats(
|
|||||||
|
|
||||||
ht = (HASHTABLE *)table;
|
ht = (HASHTABLE *)table;
|
||||||
CHK_HASHTABLE(ht);
|
CHK_HASHTABLE(ht);
|
||||||
|
*nelems = 0;
|
||||||
|
*longest = 0;
|
||||||
hashtable_read_lock(ht);
|
hashtable_read_lock(ht);
|
||||||
|
|
||||||
for (i = 0; i < ht->hashsize; i++)
|
for (i = 0; i < ht->hashsize; i++)
|
||||||
|
@ -31,10 +31,10 @@ runtests:
|
|||||||
@echo $(shell date) >> $(TESTLOG)
|
@echo $(shell date) >> $(TESTLOG)
|
||||||
@echo "Test MaxScale core" >> $(TESTLOG)
|
@echo "Test MaxScale core" >> $(TESTLOG)
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
@echo "-------------------------------" >> $(TESTLOG)
|
||||||
@-./testhash 2>> $(TESTLOG)
|
@ -./testhash 2>> $(TESTLOG)
|
||||||
ifeq ($?, 0)
|
ifeq ($?,0)
|
||||||
@echo "MaxScale core PASSED" >> $(TESTLOG)
|
@echo "MaxScale core PASSED" >> $(TESTLOG)
|
||||||
else
|
else
|
||||||
@echo "MaxScale core FAILED" >> $(TESTLOG)
|
@echo "MaxScale core FAILED" >> $(TESTLOG)
|
||||||
endif
|
endif
|
||||||
@echo "" >> $(TESTLOG)
|
@echo "" >> $(TESTLOG)
|
||||||
|
Reference in New Issue
Block a user