summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/file.c b/file.c
index 2bb43bd71e..37d177aa42 100644
--- a/file.c
+++ b/file.c
@@ -1160,19 +1160,12 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
/*
* Initialize the col_text and col_text_len arrays.
- * We allocate them, and initialize them to point to a bunch of null
- * strings, so that if the columns don't all get set to valid values,
- * they are empty.
*/
static void
init_col_text(frame_data *fdata, gint num_cols)
{
- gint i;
-
fdata->col_text_len = se_alloc0(sizeof(fdata->col_text_len) * num_cols);
- fdata->col_text = se_alloc(sizeof(fdata->col_text) * num_cols);
- for (i = 0; i < num_cols; i++)
- fdata->col_text[i] = "";
+ fdata->col_text = se_alloc0(sizeof(fdata->col_text) * num_cols);
}
/* read in a new packet */