diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2013-05-07 17:54:54 -0700 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2013-05-07 17:54:54 -0700 |
commit | bcf83543762577a9b0f5625c848b7061cc980f30 (patch) | |
tree | c0ec8336a4c350ddaa30d4a1aebad68a494afb78 /net.c | |
parent | 94675ea8c8ed7dbc92c92641a83f206eaa5f06dc (diff) | |
parent | 637f54b92c9b373b74cbab34fb89a583cebc54c0 (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.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) |