aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-09-09 08:51:33 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-09-09 08:51:33 +0000
commita65f72e8f045ec9c17848c6508c9ccd27e2e91f4 (patch)
tree2df6edf43595dfcab90b2d716b8a7c0c7181329c /file.c
parent1e137770e6fbec337fd36da77bba0d3f6ec89033 (diff)
Allocate col_text and col_text_len when the fdata struct is allocated.
(complete the checkin). svn path=/trunk/; revision=29818
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index 9712da84f3..3a2bd9d2c4 100644
--- 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);