Fix possible uninitialized value access due to strerror_r error
This commit is contained in:
parent
94675ea8c8
commit
637f54b92c
2
net.c
2
net.c
@ -55,7 +55,7 @@
|
|||||||
void __redisSetError(redisContext *c, int type, const char *str);
|
void __redisSetError(redisContext *c, int type, const char *str);
|
||||||
|
|
||||||
static void __redisSetErrorFromErrno(redisContext *c, int type, const char *prefix) {
|
static void __redisSetErrorFromErrno(redisContext *c, int type, const char *prefix) {
|
||||||
char buf[128];
|
char buf[128] = { 0 };
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
|
|
||||||
if (prefix != NULL)
|
if (prefix != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user