mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Compiler fixes for GCC when printf %s is NULL
ASTERISK-29146 Change-Id: Ib04bdad87d729f805f5fc620ef9952f58ea96d41
This commit is contained in:
committed by
Friendly Automation
parent
5b25c75d7b
commit
f86af1fbd0
@@ -702,7 +702,11 @@ static char *handle_cli_indication_add(struct ast_cli_entry *e, int cmd, struct
|
||||
ast_tone_zone_lock(tz);
|
||||
|
||||
if (ast_register_indication(tz, a->argv[3], a->argv[4])) {
|
||||
ast_log(LOG_WARNING, "Unable to register indication %s/%s\n", a->argv[2], a->argv[3]);
|
||||
if (ast_strlen_zero(a->argv[3])) {
|
||||
ast_log(LOG_WARNING, "Unable to register indication %s\n", a->argv[2]);
|
||||
} else {
|
||||
ast_log(LOG_WARNING, "Unable to register indication %s/%s\n", a->argv[2], a->argv[3]);
|
||||
}
|
||||
if (created_country) {
|
||||
ast_unregister_indication_country(a->argv[2]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user