diff options
author | Eugene Bolotin <eugenebolotin@gmail.com> | 2013-05-07 18:26:05 +0400 |
---|---|---|
committer | Eugene Bolotin <eugenebolotin@gmail.com> | 2013-05-07 18:26:05 +0400 |
commit | 637f54b92c9b373b74cbab34fb89a583cebc54c0 (patch) | |
tree | c0ec8336a4c350ddaa30d4a1aebad68a494afb78 | |
parent | 94675ea8c8ed7dbc92c92641a83f206eaa5f06dc (diff) |
Fix possible uninitialized value access due to strerror_r error
-rw-r--r-- | net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -55,7 +55,7 @@ void __redisSetError(redisContext *c, int type, const char *str); static void __redisSetErrorFromErrno(redisContext *c, int type, const char *prefix) { - char buf[128]; + char buf[128] = { 0 }; size_t len = 0; if (prefix != NULL) |