CID: 1211940 mod_rayo - unlikely dereference of NULL pointer
This commit is contained in:
parent
42108871c9
commit
c4f38f8d0d
|
@ -1588,7 +1588,7 @@ const char *srgs_grammar_to_jsgf(struct srgs_grammar *grammar)
|
|||
const char *srgs_grammar_to_jsgf_file(struct srgs_grammar *grammar, const char *basedir, const char *ext)
|
||||
{
|
||||
if (!grammar) {
|
||||
switch_log_printf(SWITCH_CHANNEL_UUID_LOG(grammar->uuid), SWITCH_LOG_CRIT, "grammar is NULL!\n");
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "grammar is NULL!\n");
|
||||
return NULL;
|
||||
}
|
||||
switch_mutex_lock(grammar->mutex);
|
||||
|
|
Loading…
Reference in New Issue