1
0
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:
marko
2007-08-13 14:07:59 +00:00
parent d9db67696e
commit f68d3656dc
3 changed files with 3 additions and 6 deletions

View File

@@ -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;