From: Michael Jerris Date: Mon, 28 Apr 2014 20:30:19 +0000 (-0400) Subject: this should never happen, but just in case, this will at least calm coverity X-Git-Tag: v1.5.12~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e41898517097cb9abaa677a0e68ef1d9c59d751;p=thirdparty%2Ffreeswitch.git this should never happen, but just in case, this will at least calm coverity --- diff --git a/src/switch_channel.c b/src/switch_channel.c index d26fd919d2..8a9c597fb3 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -4869,7 +4869,7 @@ static void process_device_hup(switch_channel_t *channel) if (!node->hold_record) { node->hold_record = newhr; - } else { + } else if (last) { last->next = newhr; }