aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-02-02 08:08:53 +0000
committerGuy Harris <guy@alum.mit.edu>2005-02-02 08:08:53 +0000
commit20730353e274f1d75d7d6a595fe8682408d6d9c6 (patch)
tree9278f564dd54579b5c33573323cee65033cb8de4 /gtk
parentde76a7c615323a5d95eafd78db185e6c7960844c (diff)
downloadwireshark-20730353e274f1d75d7d6a595fe8682408d6d9c6.tar.gz
wireshark-20730353e274f1d75d7d6a595fe8682408d6d9c6.tar.bz2
wireshark-20730353e274f1d75d7d6a595fe8682408d6d9c6.zip
Make sure "comment" is set.
Get rid of an unused variable. svn path=/trunk/; revision=13235
Diffstat (limited to 'gtk')
-rw-r--r--gtk/voip_calls.c12
1 files 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, "<unknown>"));
- } 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, "<unknown>"));
+ } else { /* Cause not set */
+ comment = g_strdup("H225 No Q931 Rel Cause");
}
break;
case H225_PROGRESS: