mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-09 08:46:55 +00:00
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)
|
const char *srgs_grammar_to_jsgf_file(struct srgs_grammar *grammar, const char *basedir, const char *ext)
|
||||||
{
|
{
|
||||||
if (!grammar) {
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
switch_mutex_lock(grammar->mutex);
|
switch_mutex_lock(grammar->mutex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user