summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Bolotin <eugenebolotin@gmail.com>2013-05-07 18:26:05 +0400
committerEugene Bolotin <eugenebolotin@gmail.com>2013-05-07 18:26:05 +0400
commit637f54b92c9b373b74cbab34fb89a583cebc54c0 (patch)
treec0ec8336a4c350ddaa30d4a1aebad68a494afb78
parent94675ea8c8ed7dbc92c92641a83f206eaa5f06dc (diff)
Fix possible uninitialized value access due to strerror_r error
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index 3c07d68..c410e87 100644
--- a/net.c
+++ b/net.c
@@ -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)