Unverified Commit 4e171540 authored by Tobias Nießen's avatar Tobias Nießen Committed by GitHub
Browse files

Fix typo in function_load local variable (#10209)

Refs: https://github.com/redis/redis/pull/10141
parent a43b6922
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment