aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-09-05 01:44:09 +0000
committerEvan Huus <eapache@gmail.com>2012-09-05 01:44:09 +0000
commit471b4d94efd82d5db3687f9be1a276b29d1533ae (patch)
tree6a22e4422d5789753ea13c71830008cdcd6a0b0d /print.c
parent5cdcf9c280435d9ba6b388e273cb4c87c790a7a6 (diff)
downloadwireshark-471b4d94efd82d5db3687f9be1a276b29d1533ae.tar.gz
wireshark-471b4d94efd82d5db3687f9be1a276b29d1533ae.tar.bz2
wireshark-471b4d94efd82d5db3687f9be1a276b29d1533ae.zip
Remove string constants from g_assert() calls, as per thread on wireshark-dev:
http://www.wireshark.org/lists/wireshark-dev/201209/msg00030.html svn path=/trunk/; revision=44774
Diffstat (limited to 'print.c')
-rw-r--r--print.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/print.c b/print.c
index b4bb51a6db..a3419c8065 100644
--- a/print.c
+++ b/print.c
@@ -167,7 +167,8 @@ void proto_tree_print_node(proto_node *node, gpointer data)
gchar label_str[ITEM_LABEL_LENGTH];
gchar *label_ptr;
- g_assert(fi && "dissection with an invisible proto tree?");
+ /* dissection with an invisible proto tree? */
+ g_assert(fi);
/* Don't print invisible entries. */
if (PROTO_ITEM_IS_HIDDEN(node))
@@ -296,7 +297,8 @@ proto_tree_write_node_pdml(proto_node *node, gpointer data)
int i;
gboolean wrap_in_fake_protocol;
- g_assert(fi && "dissection with an invisible proto tree?");
+ /* dissection with an invisible proto tree? */
+ g_assert(fi);
/* Will wrap up top-level field items inside a fake protocol wrapper to
preserve the PDML schema */
@@ -1553,7 +1555,8 @@ static void proto_tree_get_node_field_values(proto_node *node, gpointer data)
call_data = (write_field_data_t *)data;
fi = PNODE_FINFO(node);
- g_assert(fi && "dissection with an invisible proto tree?");
+ /* dissection with an invisible proto tree? */
+ g_assert(fi);
field_index = g_hash_table_lookup(call_data->fields->field_indicies, fi->hfinfo->abbrev);
if(NULL != field_index) {