mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 08:41:21 +00:00
Fix three simple clang analyzer warnings
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user