Remove harmless warning in slaveTryPartialResynchronization().

This commit is contained in:
antirez 2013-02-01 15:28:02 +01:00
parent 0ed6daa48b
commit 89b48f0825

View File

@ -923,7 +923,7 @@ int slaveTryPartialResynchronization(int fd) {
reply = sendSynchronousCommand(fd,"PSYNC",psync_runid,psync_offset,NULL); reply = sendSynchronousCommand(fd,"PSYNC",psync_runid,psync_offset,NULL);
if (!strncmp(reply,"+FULLRESYNC",11)) { 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 /* FULL RESYNC, parse the reply in order to extract the run id
* and the replication offset. */ * and the replication offset. */