From 0b526d9703456afbc4349cf671aeb3bfdb782764 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Thu, 8 Sep 2005 21:36:40 +0000 Subject: start with fdata->num = -1, so we don't have an uninitialised value while doing read_filter style dissection svn path=/trunk/; revision=15732 --- file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/file.c b/file.c index 7b328b4b57..8b6619b97c 100644 --- a/file.c +++ b/file.c @@ -875,6 +875,7 @@ read_packet(capture_file *cf, long offset) /* Allocate the next list entry, and add it to the list. */ fdata = g_mem_chunk_alloc(cf->plist_chunk); + fdata->num = -1; fdata->next = NULL; fdata->prev = NULL; fdata->pfd = NULL; -- cgit v1.2.3