From: antirez Date: Wed, 21 Mar 2012 11:11:07 +0000 (+0100) Subject: Correctly create shared.oomerr as an sds string. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/b22eab8faff94b36ff1474c7e9567778f54e79d5 Correctly create shared.oomerr as an sds string. --- diff --git a/src/redis.c b/src/redis.c index 2558f66a..bae852b8 100644 --- a/src/redis.c +++ b/src/redis.c @@ -942,8 +942,8 @@ void createSharedObjects(void) { "-MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.\r\n")); shared.roslaveerr = createObject(REDIS_STRING,sdsnew( "-READONLY You can't write against a read only slave.\r\n")); - shared.oomerr = createObject(REDIS_STRING, - "-OOM command not allowed when used memory > 'maxmemory'.\r\n"); + shared.oomerr = createObject(REDIS_STRING,sdsnew( + "-OOM command not allowed when used memory > 'maxmemory'.\r\n")); shared.space = createObject(REDIS_STRING,sdsnew(" ")); shared.colon = createObject(REDIS_STRING,sdsnew(":")); shared.plus = createObject(REDIS_STRING,sdsnew("+"));