mirror of
https://github.com/MariaDB/server.git
synced 2025-12-10 19:44:09 +03:00
branches/zip: Use mem_calloc and mem_heap_calloc when possible.
row_ext_create(): After a memset() inside UNIV_DEBUG, flag the memory uninitialized with UNIV_MEM_ALLOC().
This commit is contained in:
@@ -599,9 +599,7 @@ row_create_prebuilt(
|
||||
|
||||
heap = mem_heap_create(sizeof *prebuilt + 128);
|
||||
|
||||
prebuilt = mem_heap_alloc(heap, sizeof *prebuilt);
|
||||
|
||||
memset(prebuilt, 0, sizeof *prebuilt);
|
||||
prebuilt = mem_heap_calloc(heap, sizeof *prebuilt);
|
||||
|
||||
prebuilt->magic_n = ROW_PREBUILT_ALLOCATED;
|
||||
prebuilt->magic_n2 = ROW_PREBUILT_ALLOCATED;
|
||||
|
||||
Reference in New Issue
Block a user