diff options
author | Anders Broman <anders.broman@ericsson.com> | 2009-09-09 08:51:33 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2009-09-09 08:51:33 +0000 |
commit | a65f72e8f045ec9c17848c6508c9ccd27e2e91f4 (patch) | |
tree | 2df6edf43595dfcab90b2d716b8a7c0c7181329c /file.c | |
parent | 1e137770e6fbec337fd36da77bba0d3f6ec89033 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |