mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-06 06:33:29 +00:00
fix stupidness
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6038 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
673b1cff3b
commit
8e4524727f
@ -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_event_header_t *hp, *lp = NULL;
|
||||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
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 (!strcmp(header_name, hp->name)) {
|
||||||
if (lp) {
|
if (lp) {
|
||||||
lp->next = hp->next;
|
lp->next = hp->next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user