to avoid applying NULL dfilters while setting colorization dfilters
during an ongoing, screen-updating, capture.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@734
f5534014-38df-0310-8fa8-
9805f1628bb7
/* dfilter.c
* Routines for display filters
*
- * $Id: dfilter.c,v 1.19 1999/08/30 16:01:42 gram Exp $
+ * $Id: dfilter.c,v 1.20 1999/09/29 14:41:33 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
dfilter_apply(dfilter *dfcode, proto_tree *ptree, const guint8* pd)
{
gboolean retval;
+ if (dfcode == NULL)
+ return FALSE;
retval = dfilter_apply_node(dfcode->dftree, ptree, pd);
return retval;
}
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.98 1999/09/24 05:22:28 gram Exp $
+ * $Id: file.c,v 1.99 1999/09/29 14:41:34 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
color = -1;
for(crow = 0; cf->colors->num_of_filters &&
crow < cf->colors->num_of_filters; crow++) {
+
+ if(color_filter(cf,crow)->c_colorfilter == NULL) {
+ continue;
+ }
if(dfilter_apply(color_filter(cf,crow)->c_colorfilter, protocol_tree,
cf->pd)){
color = crow;