23 Oct
2007
23 Oct
'07
9:56 p.m.
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;