summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2013-05-07 17:54:54 -0700
committerPieter Noordhuis <pcnoordhuis@gmail.com>2013-05-07 17:54:54 -0700
commitbcf83543762577a9b0f5625c848b7061cc980f30 (patch)
treec0ec8336a4c350ddaa30d4a1aebad68a494afb78 /net.c
parent94675ea8c8ed7dbc92c92641a83f206eaa5f06dc (diff)
parent637f54b92c9b373b74cbab34fb89a583cebc54c0 (diff)
Merge pull request #164 from eugenebolotin/netc_fix_possible_uninitialized_access
Fix possible uninitialized value access due to strerror_r error
Diffstat (limited to 'net.c')
-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)