Browse files

Sentinel: suppress harmless warning by initializing 'table' to NULL.

Note that the assertion guarantees that one of the if branches setting
table is always entered.
  • Loading branch information...
1 parent 784b930 commit c14e0ecafdaa6b72464d6bcb8953b22899230406 @antirez committed Aug 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sentinel.c
@@ -818,7 +818,7 @@ void sentinelCallClientReconfScript(sentinelRedisInstance *master, int role, cha
sentinelRedisInstance *createSentinelRedisInstance(char *name, int flags, char *hostname, int port, int quorum, sentinelRedisInstance *master) {
sentinelRedisInstance *ri;
sentinelAddr *addr;
- dict *table;
+ dict *table = NULL;
char slavename[128], *sdsname;

0 comments on commit c14e0ec

Please sign in to comment.