From 89b48f0825eb042e08043b6e11847ff9d3b15e46 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 1 Feb 2013 15:28:02 +0100 Subject: [PATCH] Remove harmless warning in slaveTryPartialResynchronization(). --- src/replication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replication.c b/src/replication.c index 1a96d5a6e..40bc91c1a 100644 --- a/src/replication.c +++ b/src/replication.c @@ -923,7 +923,7 @@ int slaveTryPartialResynchronization(int fd) { reply = sendSynchronousCommand(fd,"PSYNC",psync_runid,psync_offset,NULL); if (!strncmp(reply,"+FULLRESYNC",11)) { - char *runid, *offset; + char *runid = NULL, *offset = NULL; /* FULL RESYNC, parse the reply in order to extract the run id * and the replication offset. */ -- GitLab