From 637f54b92c9b373b74cbab34fb89a583cebc54c0 Mon Sep 17 00:00:00 2001 From: Eugene Bolotin Date: Tue, 7 May 2013 18:26:05 +0400 Subject: [PATCH] Fix possible uninitialized value access due to strerror_r error --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)