1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

branches/zip: Initialize some uninitialized variables in order to avoid

comparing uninitialized values.

dict_mem_table_create(): Initialize table->version_number.

ins_node_create(): Initialize node->table_version_number.

row_create_prebuilt(): Initialize all fields.  Initialize most fields
by memset(), so that any fields that are added will be initialized
automatically.
This commit is contained in:
marko
2007-06-11 14:39:04 +00:00
parent dcad18b1e8
commit 99efc2aeff
3 changed files with 6 additions and 36 deletions

View File

@@ -72,6 +72,7 @@ ins_node_create(
node->state = INS_NODE_SET_IX_LOCK;
node->table = table;
node->table_version_number = table->version_number;
node->index = NULL;
node->entry = NULL;