[Freeswitch-svn] [commit] r6038 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Tue Oct 23 17:56:31 EDT 2007


Author: anthm
Date: Tue Oct 23 17:56:31 2007
New Revision: 6038

Modified:
   freeswitch/trunk/src/switch_event.c

Log:
fix stupidness

Modified: freeswitch/trunk/src/switch_event.c
==============================================================================
--- freeswitch/trunk/src/switch_event.c	(original)
+++ freeswitch/trunk/src/switch_event.c	Tue Oct 23 17:56:31 2007
@@ -545,7 +545,7 @@
 	switch_event_header_t *hp, *lp = NULL;
 	switch_status_t status = SWITCH_STATUS_FALSE;
 	
-	for (hp = event->headers; hp && hp->next; hp = hp->next) {
+	for (hp = event->headers; hp; hp = hp->next) {
 		if (!strcmp(header_name, hp->name)) {
 			if (lp) {
 				lp->next = hp->next;



More information about the Freeswitch-svn mailing list