diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-12-13 12:40:47 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-12-15 13:52:51 +0000 |
commit | e7ba5d78ea49abd28a34696f631271d5b3338471 (patch) | |
tree | 9fdcd06ab45f1e5dcd350ae191d8ac5cd35de6f7 /epan/packet.c | |
parent | c65e5851b2eef0ef99e4cb9388eb780cd6a87aa7 (diff) |
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>
Diffstat (limited to 'epan/packet.c')
-rw-r--r-- | epan/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/packet.c b/epan/packet.c index 5e0142c77f..d69e540e73 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -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)) |