Fix typo in function_load local variable (#10209)

Refs: https://github.com/redis/redis/pull/10141
This commit is contained in:
Tobias Nießen 2022-01-30 13:38:58 +01:00 committed by GitHub
parent a43b6922d1
commit 4e17154060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2113,8 +2113,8 @@ static int rewriteFunctions(rio *aof) {
} else {
if (rioWrite(aof, "*5\r\n", 4) == 0) goto werr;
}
char fucntion_load[] = "$8\r\nFUNCTION\r\n$4\r\nLOAD\r\n";
if (rioWrite(aof, fucntion_load, sizeof(fucntion_load) - 1) == 0) goto werr;
char function_load[] = "$8\r\nFUNCTION\r\n$4\r\nLOAD\r\n";
if (rioWrite(aof, function_load, sizeof(function_load) - 1) == 0) goto werr;
if (rioWriteBulkString(aof, li->ei->name, sdslen(li->ei->name)) == 0) goto werr;
if (rioWriteBulkString(aof, li->name, sdslen(li->name)) == 0) goto werr;
if (li->desc) {