[Freeswitch-svn] [commit] r8777 - freeswitch/trunk/src/mod/applications/mod_fifo

Freeswitch SVN anthm at freeswitch.org
Fri Jun 6 10:15:19 EDT 2008


Author: anthm
Date: Fri Jun  6 10:15:19 2008
New Revision: 8777

Modified:
   freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c

Log:
thanks Ctrix

Modified: freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c	Fri Jun  6 10:15:19 2008
@@ -1126,7 +1126,7 @@
 		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]);



More information about the Freeswitch-svn mailing list