Skip to content

Commit

Permalink
redis: init variables to get rid of compile warnings
Browse files Browse the repository at this point in the history
- GH #2298

(cherry picked from commit f1de08e)
  • Loading branch information
miconda authored and henningw committed May 13, 2020
1 parent 9c14f4b commit 1b9fb8a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/modules/db_redis/redis_table.c
Expand Up @@ -495,13 +495,13 @@ int db_redis_parse_keys(km_redis_con_t *con) {
str type_name;
str column_name;

struct str_hash_entry *table_entry;
redis_table_t *table;
redis_type_t *type;
redis_type_t *type_target;
redis_key_t *key;
redis_key_t **key_target;
redis_key_t *key_location;
struct str_hash_entry *table_entry = NULL;
redis_table_t *table = NULL;
redis_type_t *type = NULL;
redis_type_t *type_target = NULL;
redis_key_t *key = NULL;
redis_key_t **key_target = NULL;
redis_key_t *key_location = NULL;

enum {
DBREDIS_KEYS_TABLE_ST,
Expand Down Expand Up @@ -641,13 +641,13 @@ int db_redis_parse_schema(km_redis_con_t *con) {
struct dirent* dent;
char *dir_name;

str table_name;
str table_name = str_init("");
str column_name;
str type_name;

struct str_hash_entry *table_entry;
struct str_hash_entry *column_entry;
redis_table_t *table;
struct str_hash_entry *table_entry = NULL;
struct str_hash_entry *column_entry = NULL;
redis_table_t *table = NULL;

char full_path[_POSIX_PATH_MAX + 1];
int path_len;
Expand Down

0 comments on commit 1b9fb8a

Please sign in to comment.