packet.c: add initializer.

As per glib manual, GSLists need to be NULL initialized.

Change-Id: If78904b900f6ddd7a0afaf3a1c480ec7626f2027
Reviewed-on: https://code.wireshark.org/review/19281
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Dario Lombardo 2016-12-13 12:40:47 +01:00 committed by Anders Broman
parent c65e5851b2
commit e7ba5d78ea
1 changed files with 2 additions and 2 deletions

View File

@ -238,8 +238,8 @@ set_actual_length(tvbuff_t *tvb, const guint specified_len)
/* List of routines that are called before we make a pass through a capture file
* and dissect all its packets. See register_init_routine and
* register_cleanup_routine in packet.h */
static GSList *init_routines;
static GSList *cleanup_routines;
static GSList *init_routines = NULL;
static GSList *cleanup_routines = NULL;
void
register_init_routine(void (*func)(void))