From 20730353e274f1d75d7d6a595fe8682408d6d9c6 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 2 Feb 2005 08:08:53 +0000 Subject: [PATCH] Make sure "comment" is set. Get rid of an unused variable. svn path=/trunk/; revision=13235 --- gtk/voip_calls.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gtk/voip_calls.c b/gtk/voip_calls.c index 27b18e57aa..47864c4c95 100644 --- a/gtk/voip_calls.c +++ b/gtk/voip_calls.c @@ -753,7 +753,6 @@ static gchar *q931_calling_number; static gchar *q931_called_number; static guint8 q931_cause_value; static gint32 q931_crv; -static guint8 q931_message_type; static guint32 q931_frame_num; /****************************************************************************/ @@ -1000,12 +999,11 @@ H225calls_packet(void *ptr _U_, packet_info *pinfo, epan_dissect_t *edt _U_, con tapinfo->completed_calls++; } /* get the Q931 Release cause code */ - if (q931_frame_num == pinfo->fd->num){ - if (q931_cause_value != 0xFF){ - comment = g_strdup_printf("H225 Q931 Rel Cause (%i):%s", q931_cause_value, val_to_str(q931_cause_value, q931_cause_code_vals, "")); - } else { /* Cause not set */ - comment = g_strdup("H225 No Q931 Rel Cause"); - } + if (q931_frame_num == pinfo->fd->num && + q931_cause_value != 0xFF){ + comment = g_strdup_printf("H225 Q931 Rel Cause (%i):%s", q931_cause_value, val_to_str(q931_cause_value, q931_cause_code_vals, "")); + } else { /* Cause not set */ + comment = g_strdup("H225 No Q931 Rel Cause"); } break; case H225_PROGRESS: