fix stupidness

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6038 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-10-23 21:56:31 +00:00
parent 673b1cff3b
commit 8e4524727f

View 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;