summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2018-05-25 17:00:46 +0200
committerGitHub <noreply@github.com>2018-05-25 17:00:46 +0200
commitf8fd6639e79f9fbd13b87a101135d4f141bfde68 (patch)
treea5f5882ca6ea53602250327a13c30ffe5686f3bd
parent2bd36616bafcafa7137a7dbcb5d3539a6873fb2e (diff)
parentc2d7e6cea7c9f36ecf25399fd2ba7c950a101bda (diff)
downloadredis-f8fd6639e79f9fbd13b87a101135d4f141bfde68.tar.gz
Merge pull request #4948 from soloestoy/avoid-warning-stream
avoid warning in t_stream.c
-rw-r--r--src/t_stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/t_stream.c b/src/t_stream.c
index d17bf362b..0d27fd834 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. */