Avoid warning by explicitly initializing var to NULL.

This commit is contained in:
antirez 2018-05-25 16:19:14 +02:00
parent b2b4e186a2
commit 95fa564add

View File

@ -1272,7 +1272,7 @@ void xreadCommand(client *c) {
int id_idx = i - streams_arg - streams_count; int id_idx = i - streams_arg - streams_count;
robj *key = c->argv[i-streams_count]; robj *key = c->argv[i-streams_count];
robj *o; robj *o;
streamCG *group; streamCG *group = NULL;
/* If a group was specified, than we need to be sure that the /* If a group was specified, than we need to be sure that the
* key and group actually exist. */ * key and group actually exist. */