From: Anthony Minessale Date: Tue, 23 Oct 2007 21:56:31 +0000 (+0000) Subject: fix stupidness X-Git-Tag: v1.0-beta2~332 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e4524727f061827af1ff5251072fec9ca9e2096;p=thirdparty%2Ffreeswitch.git fix stupidness git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6038 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_event.c b/src/switch_event.c index 2c5fe73a91..cefac47768 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -545,7 +545,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_del_header(switch_event_t *event, c 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;