thanks Ctrix

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8777 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-06-06 14:15:19 +00:00
parent 9e3ff7cfd1
commit f7b99428b0
1 changed files with 1 additions and 1 deletions

View File

@ -1126,7 +1126,7 @@ SWITCH_STANDARD_API(fifo_api_function)
switch_safe_free(xml_text);
} else if (!strcasecmp(argv[0], "importance")) {
if ((node = switch_core_hash_find(globals.fifo_hash, argv[1]))) {
if (argv[1] && (node = switch_core_hash_find(globals.fifo_hash, argv[1]))) {
int importance = 0;
if (argc > 2) {
importance = atoi(argv[2]);