From: gram Date: Tue, 15 Jan 2002 23:11:02 +0000 (+0000) Subject: Tethereal needs to allocate space for col_expr[] and col_expr_val[] too. X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=7b1b8f82516cd056bc3772bca08142f6a3804537 Tethereal needs to allocate space for col_expr[] and col_expr_val[] too. Capturing with non-verbose output being printed segfaulted w/o this. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4551 f5534014-38df-0310-8fa8-9805f1628bb7 --- diff --git a/tethereal.c b/tethereal.c index 9faa4db245..a507262ee9 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.117 2002/01/13 20:35:08 guy Exp $ + * $Id: tethereal.c,v 1.118 2002/01/15 23:11:02 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -677,6 +677,9 @@ 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_expr[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN); + cfile.cinfo.col_expr_val[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN); } #ifdef HAVE_LIBPCAP