mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-19 02:31:53 +00:00
code analysis for hash functions.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7404 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -3578,7 +3578,7 @@ SWITCH_STANDARD_API(conf_api_main)
|
||||
argc = switch_separate_string(lbuf, ' ', argv, (sizeof(argv) / sizeof(argv[0])));
|
||||
|
||||
/* try to find a command to execute */
|
||||
if (argc) {
|
||||
if (argc && argv[0]) {
|
||||
conference_obj_t *conference = NULL;
|
||||
|
||||
if ((conference = (conference_obj_t *) switch_core_hash_find(globals.conference_hash, argv[0]))) {
|
||||
|
||||
@@ -208,7 +208,7 @@ SWITCH_STANDARD_APP(fifo_function)
|
||||
|
||||
mydata = switch_core_session_strdup(session, data);
|
||||
switch_assert(mydata);
|
||||
if ((argc = switch_separate_string(mydata, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) < 2) {
|
||||
if ((argc = switch_separate_string(mydata, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) < 2 || !argv[0]) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "USAGE %s\n", FIFO_USAGE);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user