From: Travis Cross Date: Thu, 29 May 2014 14:25:49 +0000 (+0000) Subject: Remove redundant check for null X-Git-Tag: v1.4.5~2^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=609982cf2fd51213c4c30236a0b68c680f90c738;p=thirdparty%2Ffreeswitch.git Remove redundant check for null We're asserting now, and we would have already blown up from dereferencing earlier. --- diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index 95402638cc..1c6cef66c1 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -1501,7 +1501,7 @@ static void *SWITCH_THREAD_FUNC outbound_ringall_thread_run(switch_thread_t *thr stream2.write_function(&stream2, "%s,", h->uuid); switch_safe_free(parsed); - if (expanded_originate_string && expanded_originate_string != h->originate_string) { + if (expanded_originate_string != h->originate_string) { switch_safe_free(expanded_originate_string); } }