aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-04-16 04:52:55 +0000
committerGuy Harris <guy@alum.mit.edu>2003-04-16 04:52:55 +0000
commit24ec2110d129373d9652f1667eed8faa075cd8f0 (patch)
treed91c4e7b602692fac4cd86a53d42ce5230bcf3c0 /gtk/main.c
parent77923868c96774a53ece0d097329dd20834ce6a9 (diff)
Add the notion of a "fence" to columns. A dissector can set the fence
to "protect" what's currently in the column, so that attempts to clear the column will only clear stuff after the fence and attempts to overwrite the column will append stuff after the fence. This, for example, allows a dissector to arrange that the Info column contain information for its protocol and for protocols running atop it. svn path=/trunk/; revision=7466
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 0810ef3d1d..7c56bec410 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1,6 +1,6 @@
/* main.c
*
- * $Id: main.c,v 1.286 2003/03/12 00:07:46 guy Exp $
+ * $Id: main.c,v 1.287 2003/04/16 04:52:55 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1963,6 +1963,7 @@ main(int argc, char *argv[])
cfile.cinfo.col_buf[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_INFO_LEN);
else
cfile.cinfo.col_buf[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN);
+ cfile.cinfo.col_fence[i] = 0;
cfile.cinfo.col_expr[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN);
cfile.cinfo.col_expr_val[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN);
}