Skip to content

Commit

Permalink
redis-check-rdb: initialize entry in case while is never entered.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jan 30, 2015
1 parent 79fa67c commit 6502947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redis-check-rdb.c
Expand Up @@ -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. */
Expand Down

0 comments on commit 6502947

Please sign in to comment.