Merge pull request #164 from eugenebolotin/netc_fix_possible_uninitialized_access

Fix possible uninitialized value access due to strerror_r error
This commit is contained in:
Pieter Noordhuis 2013-05-07 17:54:54 -07:00
commit bcf8354376

2
net.c
View File

@ -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)