Skip to content

Commit

Permalink
db_redis: init allocated redis table structure
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 3, 2023
1 parent d4995bf commit e24df12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/db_redis/redis_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,7 @@ static struct str_hash_entry *db_redis_create_table(str *table)
pkg_free(e);
return NULL;
}
t->entry_keys = NULL;
t->types = NULL;
memset(t, 0, sizeof(redis_table_t));

if(str_hash_alloc(&t->columns, REDIS_HT_SIZE) != 0) {
LM_ERR("Failed to allocate memory for table schema hashtable\n");
Expand Down

0 comments on commit e24df12

Please sign in to comment.