[mod_avmd, esl/python] Two build fixups (#611)

This commit is contained in:
Christian Glombek authored and GitHub committed 2021-03-24 19:30:52 +03:00
1 parent 4e581b096b
commit 513b0fbf00
2 files changed
+10 -8

No files matched your search

+3 -1
View File
@@ -1343,8 +1343,10 @@ static switch_status_t avmd_parse_cmd_data(avmd_session_t *s, const char *cmd_da
switch_assert(argv[idx]);
status = avmd_parse_cmd_data_one_entry(argv[idx], &settings);
if (status != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(s->session), SWITCH_LOG_ERROR,
if (argv[idx]) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(s->session), SWITCH_LOG_ERROR,
"Error parsing option [%d] [%s]\n", idx + 1, argv[idx]); /* idx + 1 to report option 0 as 1 for users convenience */
}
switch (status)
{
case SWITCH_STATUS_TERM: