CID: 1211940 mod_rayo - unlikely dereference of NULL pointer

This commit is contained in:
Chris Rienzo 2014-05-08 12:11:15 -04:00
parent 42108871c9
commit c4f38f8d0d
1 changed files with 1 additions and 1 deletions

View File

@ -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);