Allocate col_text and col_text_len when the fdata struct is allocated.
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 9 Sep 2009 08:51:33 +0000 (08:51 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 9 Sep 2009 08:51:33 +0000 (08:51 +0000)
(complete the checkin).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29818 f5534014-38df-0310-8fa8-9805f1628bb7

file.c

diff --git a/file.c b/file.c
index 9712da84f3977652999079a2bc75960d0cc247fb..3a2bd9d2c413fdb651772e0d49b6da999286443e 100644 (file)
--- a/file.c
+++ b/file.c
@@ -1280,6 +1280,8 @@ read_packet(capture_file *cf, dfilter_t *dfcode,
 
   fdata->abs_ts.secs = phdr->ts.secs;
   fdata->abs_ts.nsecs = phdr->ts.nsecs;
+  fdata->col_text_len = se_alloc0(sizeof(fdata->col_text) * (cf->cinfo.num_cols));
+  fdata->col_text = se_alloc0(sizeof(fdata->col_text) * (cf->cinfo.num_cols));
 
   if (cf->plist_end != NULL)
     nstime_delta(&fdata->del_cap_ts, &fdata->abs_ts, &cf->plist_end->abs_ts);