Skip to content

Commit

Permalink
Merge pull request redis#164 from eugenebolotin/netc_fix_possible_uni…
Browse files Browse the repository at this point in the history
…nitialized_access

Fix possible uninitialized value access due to strerror_r error
  • Loading branch information
pietern committed May 8, 2013
2 parents 94675ea + 637f54b commit bcf8354
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 bcf8354

Please sign in to comment.