Initialized argument pointer values with zeroes in hashtable_get_stats.
This commit is contained in:
parent
83bdc15b54
commit
cb20f8ab8d
@ -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++)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user