Commit 637f54b9 authored by Eugene Bolotin's avatar Eugene Bolotin
Browse files

Fix possible uninitialized value access due to strerror_r error

parent 94675ea8
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
void __redisSetError(redisContext *c, int type, const char *str); void __redisSetError(redisContext *c, int type, const char *str);
static void __redisSetErrorFromErrno(redisContext *c, int type, const char *prefix) { static void __redisSetErrorFromErrno(redisContext *c, int type, const char *prefix) {
char buf[128]; char buf[128] = { 0 };
size_t len = 0; size_t len = 0;
if (prefix != NULL) if (prefix != NULL)
......
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