]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4715 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 15 Oct 2012 16:48:03 +0000 (12:48 -0400)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 15 Oct 2012 16:48:03 +0000 (12:48 -0400)
src/switch_event.c

index a240853ee2d4013473a7b43fe1bb1e1346605de3..e371695b28294f6e5eefd679a369d30f85edc1f8 100644 (file)
@@ -911,7 +911,7 @@ static switch_status_t switch_event_base_add_header(switch_event_t *event, switc
                        fly++;
                }
                
-               if ((header = switch_event_get_header_ptr(event, header_name))) {
+               if (header || (header = switch_event_get_header_ptr(event, header_name))) {
                        
                        if (index_ptr) {
                                if (index > -1 && index <= 4000) {