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
redis
Commits
d956d809
Commit
d956d809
authored
Nov 13, 2014
by
Matt Stancliff
Browse files
Fix three simple clang analyzer warnings
parent
9b786b12
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
d956d809
...
...
@@ -720,7 +720,7 @@ int rdbSave(char *filename) {
char
tmpfile
[
256
];
FILE
*
fp
;
rio
rdb
;
int
error
;
int
error
=
0
;
snprintf
(
tmpfile
,
256
,
"temp-%d.rdb"
,
(
int
)
getpid
());
fp
=
fopen
(
tmpfile
,
"w"
);
...
...
src/sentinel.c
View file @
d956d809
...
...
@@ -577,7 +577,7 @@ void sentinelEvent(int level, char *type, sentinelRedisInstance *ri,
if (level == REDIS_WARNING && ri != NULL) {
sentinelRedisInstance *master = (ri->flags & SRI_MASTER) ?
ri : ri->master;
if
(
master
->
notification_script
)
{
if (master
&& master
->notification_script) {
sentinelScheduleScriptExecution(master->notification_script,
type,msg,NULL);
}
...
...
src/t_zset.c
View file @
d956d809
...
...
@@ -1382,7 +1382,7 @@ void zremrangeGenericCommand(redisClient *c, int rangetype) {
robj
*
key
=
c
->
argv
[
1
];
robj
*
zobj
;
int
keyremoved
=
0
;
unsigned
long
deleted
;
unsigned
long
deleted
=
0
;
zrangespec
range
;
zlexrangespec
lexrange
;
long
start
,
end
,
llen
;
...
...
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