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
dedc6208
Commit
dedc6208
authored
Jul 13, 2023
by
V G
Committed by
Michael Grunder
Jul 14, 2023
Browse files
Fix a false positive warning of gcc 12+ -Werror=maybe-uninitialized
parent
bff171c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
test.c
View file @
dedc6208
...
...
@@ -1340,7 +1340,7 @@ static void test_blocking_io_errors(struct config config) {
}
static
void
test_invalid_timeout_errors
(
struct
config
config
)
{
redisContext
*
c
;
redisContext
*
c
=
NULL
;
test
(
"Set error when an invalid timeout usec value is used during connect: "
);
...
...
@@ -1355,7 +1355,7 @@ static void test_invalid_timeout_errors(struct config config) {
assert
(
NULL
);
}
test_cond
(
c
->
err
==
REDIS_ERR_IO
&&
strcmp
(
c
->
errstr
,
"Invalid timeout specified"
)
==
0
);
test_cond
(
c
!=
NULL
&&
c
->
err
==
REDIS_ERR_IO
&&
strcmp
(
c
->
errstr
,
"Invalid timeout specified"
)
==
0
);
redisFree
(
c
);
test
(
"Set error when an invalid timeout sec value is used during connect: "
);
...
...
@@ -1371,7 +1371,7 @@ static void test_invalid_timeout_errors(struct config config) {
assert
(
NULL
);
}
test_cond
(
c
->
err
==
REDIS_ERR_IO
&&
strcmp
(
c
->
errstr
,
"Invalid timeout specified"
)
==
0
);
test_cond
(
c
!=
NULL
&&
c
->
err
==
REDIS_ERR_IO
&&
strcmp
(
c
->
errstr
,
"Invalid timeout specified"
)
==
0
);
redisFree
(
c
);
}
...
...
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