http://www.wireshark.org/lists/wireshark-dev/201209/msg00030.html
svn path=/trunk/; revision=44774
guint8 c_char;
size_t c_match = 0;
guint8 c_char;
size_t c_match = 0;
- g_assert(fi && "dissection with an invisible proto tree?");
+ /* dissection with an invisible proto tree? */
+ g_assert(fi);
if (mdata->frame_matched) {
/* We already had a match; don't bother doing any more work. */
if (mdata->frame_matched) {
/* We already had a match; don't bother doing any more work. */
gchar label_str[ITEM_LABEL_LENGTH];
gchar *label_ptr;
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))
/* Don't print invisible entries. */
if (PROTO_ITEM_IS_HIDDEN(node))
int i;
gboolean wrap_in_fake_protocol;
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 */
/* Will wrap up top-level field items inside a fake protocol wrapper to
preserve the PDML schema */
call_data = (write_field_data_t *)data;
fi = PNODE_FINFO(node);
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) {
field_index = g_hash_table_lookup(call_data->fields->field_indicies, fi->hfinfo->abbrev);
if(NULL != field_index) {
GNode *stat_node;
finfo = PNODE_FINFO(ptree_node);
GNode *stat_node;
finfo = PNODE_FINFO(ptree_node);
- /* We don't fake protocol nodes we expect them to have a field_info */
- g_assert(finfo && "dissection with faked proto tree?");
+ /* We don't fake protocol nodes we expect them to have a field_info.
+ * Dissection with faked proto tree? */
+ g_assert(finfo);
/* If the field info isn't related to a protocol but to a field,
* don't count them, as they don't belong to any protocol.
/* If the field info isn't related to a protocol but to a field,
* don't count them, as they don't belong to any protocol.
g_signal_handlers_disconnect_by_func(vers_combo_box, G_CALLBACK(dcerpcstat_version_select), NULL );
ws_combo_box_clear_text_and_pointer(GTK_COMBO_BOX(vers_combo_box));
g_signal_handlers_disconnect_by_func(vers_combo_box, G_CALLBACK(dcerpcstat_version_select), NULL );
ws_combo_box_clear_text_and_pointer(GTK_COMBO_BOX(vers_combo_box));
- g_assert((k != NULL) && "dcerpc_stat: invalid selection"); /* Somehow selected top level ?? */
+ /* dcerpc_stat: invalid selection... somehow selected top level ?? */
+ g_assert(k != NULL);
dcerpc_uuid_program = &(k->uuid);
/* re-create version menu */
dcerpc_uuid_program = &(k->uuid);
/* re-create version menu */
io_stat_reset(io);
error_string=enable_graph(&io->graphs[0], NULL, NULL);
io_stat_reset(io);
error_string=enable_graph(&io->graphs[0], NULL, NULL);
- g_assert((error_string == NULL) && "Can't attach io_stat tap !");
+ /* Can't attach io_stat tap ! */
+ g_assert(error_string == NULL);
node = iter->user_data;
fi = PNODE_FINFO(node);
node = iter->user_data;
fi = PNODE_FINFO(node);
- g_assert(fi && "dissection with an invisible proto tree?");
+ /* dissection with an invisible proto tree? */
+ g_assert(fi);
switch (column) {
case 0:
switch (column) {
case 0:
finfo = PNODE_FINFO(ptree_node);
finfo = PNODE_FINFO(ptree_node);
- g_assert(finfo && "Caller passed top of the protocol tree. Expected child node");
+ /* Caller passed top of the protocol tree. Expected child node */
+ g_assert(finfo);
if (hfinformation==(finfo->hfinfo)) {
hfssrc = proto_registrar_get_byname(proto_field);
if (hfinformation==(finfo->hfinfo)) {
hfssrc = proto_registrar_get_byname(proto_field);
gchar *label_ptr;
gboolean is_leaf;
gchar *label_ptr;
gboolean is_leaf;
- g_assert(fi && "dissection with an invisible proto tree?");
+ /* dissection with an invisible proto tree? */
+ g_assert(fi);
if (PROTO_ITEM_IS_HIDDEN(node) && !prefs.display_hidden_proto_items)
return;
if (PROTO_ITEM_IS_HIDDEN(node) && !prefs.display_hidden_proto_items)
return;