Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
637f54b9
Commit
637f54b9
authored
May 07, 2013
by
Eugene Bolotin
Browse files
Fix possible uninitialized value access due to strerror_r error
parent
94675ea8
Changes
1
Hide whitespace changes
Inline
Side-by-side
net.c
View file @
637f54b9
...
@@ -55,7 +55,7 @@
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment