redis-check-rdb: initialize entry in case while is never entered.

This commit is contained in:
antirez 2015-01-30 15:19:39 +01:00
parent 79fa67cdb8
commit 6502947a85

View File

@ -545,7 +545,7 @@ static void printErrorStack(entry *e) {
void process(void) { void process(void) {
uint64_t num_errors = 0, num_valid_ops = 0, num_valid_bytes = 0; uint64_t num_errors = 0, num_valid_ops = 0, num_valid_bytes = 0;
entry entry; entry entry = { NULL, -1, 0 };
int dump_version = processHeader(); int dump_version = processHeader();
/* Exclude the final checksum for RDB >= 5. Will be checked at the end. */ /* Exclude the final checksum for RDB >= 5. Will be checked at the end. */