Initialize original client argv for aof (#8042)

(this is a fixup for #8006)

Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
This commit is contained in:
Madelyn Olson 2020-11-11 13:58:05 -08:00 committed by GitHub
parent 48a9d63af3
commit a0576bdeea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -669,6 +669,8 @@ struct client *createAOFClient(void) {
c->querybuf_peak = 0;
c->argc = 0;
c->argv = NULL;
c->original_argc = 0;
c->original_argv = NULL;
c->argv_len_sum = 0;
c->bufpos = 0;
c->flags = 0;
@ -704,6 +706,7 @@ void freeFakeClient(struct client *c) {
listRelease(c->reply);
listRelease(c->watched_keys);
freeClientMultiState(c);
freeClientOriginalArgv(c);
zfree(c);
}