]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix stupidness
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Oct 2007 21:56:31 +0000 (21:56 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Oct 2007 21:56:31 +0000 (21:56 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6038 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_event.c

index 2c5fe73a916bed0a4cfa07ef72c68fbefafd6962..cefac47768df69cad1c1dfc2f10ac3fca28cc598 100644 (file)
@@ -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;