diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2021-10-22 15:44:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 15:44:21 +0300 |
commit | a97f06a6ebdcd4bf197cfb4249ed747a52ac9243 (patch) | |
tree | 1d7cca72661319d25e0d6d73483b5e7d0f0d1f56 /database | |
parent | e79fe3fb8b6c734c7c49d52872c821d977892609 (diff) |
Fix coverity issues 373612 & 373611 (#11684)
* fix 2 coverity errors
* remove call to sql_queue_removed_alerts_to_aclk from health
Diffstat (limited to 'database')
-rw-r--r-- | database/sqlite/sqlite_aclk_alert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/database/sqlite/sqlite_aclk_alert.c b/database/sqlite/sqlite_aclk_alert.c index 6193de5e18..24353201f8 100644 --- a/database/sqlite/sqlite_aclk_alert.c +++ b/database/sqlite/sqlite_aclk_alert.c @@ -670,9 +670,9 @@ void health_alarm_entry2proto_nolock(struct alarm_log_entry *alarm_log, ALARM_EN alarm_log->utc_offset = host->utc_offset; alarm_log->timezone = strdupz((char *)host->abbrev_timezone); alarm_log->exec_path = ae->exec ? strdupz((char *)ae->exec) : strdupz((char *)host->health_default_exec); - alarm_log->conf_source = strdupz(ae->source); + alarm_log->conf_source = ae->source ? strdupz((char *)ae->source) : ""; - alarm_log->command = strdupz(edit_command); + alarm_log->command = strdupz((char *)edit_command); alarm_log->duration = (time_t)ae->duration; alarm_log->non_clear_duration = (time_t)ae->non_clear_duration; |