From c2d7e6cea7c9f36ecf25399fd2ba7c950a101bda Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" Date: Fri, 25 May 2018 22:49:49 +0800 Subject: [PATCH] avoid warning in t_stream.c --- src/t_stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/t_stream.c b/src/t_stream.c index d17bf362..0d27fd83 100644 --- a/src/t_stream.c +++ b/src/t_stream.c @@ -1593,7 +1593,7 @@ NULL * acknowledged, that is, the IDs we were actually able to resolve in the PEL. */ void xackCommand(client *c) { - streamCG *group; + streamCG *group = NULL; robj *o = lookupKeyRead(c->db,c->argv[1]); if (o) { if (checkType(c,o,OBJ_STREAM)) return; /* Type error. */ @@ -1832,7 +1832,7 @@ void xpendingCommand(client *c) { * successfully claimed, so that the caller is able to understand * what messages it is now in charge of. */ void xclaimCommand(client *c) { - streamCG *group; + streamCG *group = NULL; robj *o = lookupKeyRead(c->db,c->argv[1]); long long minidle; /* Minimum idle time argument. */ long long retrycount = -1; /* -1 means RETRYCOUNT option not given. */