From 6502947a8519e9109c6fa1575460290d92b48f38 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 30 Jan 2015 15:19:39 +0100 Subject: redis-check-rdb: initialize entry in case while is never entered. --- src/redis-check-rdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-check-rdb.c b/src/redis-check-rdb.c index c34204204..ff87f142f 100644 --- a/src/redis-check-rdb.c +++ b/src/redis-check-rdb.c @@ -545,7 +545,7 @@ static void printErrorStack(entry *e) { void process(void) { uint64_t num_errors = 0, num_valid_ops = 0, num_valid_bytes = 0; - entry entry; + entry entry = { NULL, -1, 0 }; int dump_version = processHeader(); /* Exclude the final checksum for RDB >= 5. Will be checked at the end. */ -- cgit v1.2.1