[Freeswitch-trunk] [commit] r6696 - freeswitch/trunk/src/mod/xml_int/mod_xml_rpc

Freeswitch SVN mikej at freeswitch.org
Tue Dec 11 22:36:40 EST 2007


Author: mikej
Date: Tue Dec 11 22:36:39 2007
New Revision: 6696

Modified:
   freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c

Log:
cleanup, null checks. etc.

Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c	(original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c	Tue Dec 11 22:36:39 2007
@@ -336,7 +336,7 @@
 
 	if (!strncmp(r->uri, "/domains/", 9)) {
 		domain_name = strdup(r->uri + 9);
-		assert(domain_name);
+		switch_assert(domain_name);
 		
 		if ((e = strchr(domain_name, '/'))) {
 			*e++ = '\0';
@@ -556,7 +556,7 @@
 				switch_event_add_header(stream.event, SWITCH_STACK_BOTTOM, "HTTP-QUERY", "%s", query);
 
 				qd = strdup(query);
-				assert(qd != NULL);
+				switch_assert(qd != NULL);
 
 				q = qd;
 				next = q;



More information about the Freeswitch-trunk mailing list