Skip to content

Commit c7f322c

Browse files
committed
Merge 10.2 into 10.3
2 parents d5ce782 + 8036d0a commit c7f322c

32 files changed

+1636
-97
lines changed

client/completion_hash.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ Bucket *find_longest_match(HashTable *ht, char *str, uint length,
205205
void completion_hash_clean(HashTable *ht)
206206
{
207207
free_root(&ht->mem_root,MYF(0));
208-
bzero((char*) ht->arBuckets,ht->nTableSize*sizeof(Bucket *));
208+
if (size_t s= ht->nTableSize)
209+
bzero((char*) ht->arBuckets, s * sizeof(Bucket *));
209210
}
210211

211212

0 commit comments

Comments
 (0)