summaryrefslogtreecommitdiff
path: root/src/redis-check-rdb.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-01-30 15:19:39 +0100
committerantirez <antirez@gmail.com>2015-01-30 15:19:39 +0100
commit6502947a8519e9109c6fa1575460290d92b48f38 (patch)
treed10f5fcf57b2397f99118f2425e2d253204ddbff /src/redis-check-rdb.c
parent79fa67cdb8a92ed98a499dbb31483740dac0686c (diff)
downloadredis-6502947a8519e9109c6fa1575460290d92b48f38.tar.gz
redis-check-rdb: initialize entry in case while is never entered.
Diffstat (limited to 'src/redis-check-rdb.c')
-rw-r--r--src/redis-check-rdb.c2
1 files changed, 1 insertions, 1 deletions
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. */