Tethereal needs to allocate space for col_expr[] and col_expr_val[] too.
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 15 Jan 2002 23:11:02 +0000 (23:11 +0000)
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 15 Jan 2002 23:11:02 +0000 (23:11 +0000)
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

tethereal.c

index 9faa4db24596dd6cfb6d791a465cf5b4d705d427..a507262ee949894556726e29946493937ce0de3a 100644 (file)
@@ -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 <gerald@ethereal.com>
@@ -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