From 6e41898517097cb9abaa677a0e68ef1d9c59d751 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 28 Apr 2014 16:30:19 -0400 Subject: [PATCH] this should never happen, but just in case, this will at least calm coverity --- src/switch_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }