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 5a851c458f
commit 0901884379

View File

@ -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. */