Skip to content

Commit

Permalink
Fix possible uninitialized value access due to strerror_r error
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenebolotin committed May 7, 2013
1 parent 94675ea commit 637f54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 637f54b

Please sign in to comment.