packet.c: add initializer.
authorDario Lombardo <lomato@gmail.com>
Tue, 13 Dec 2016 11:40:47 +0000 (12:40 +0100)
committerAnders Broman <a.broman58@gmail.com>
Thu, 15 Dec 2016 13:52:51 +0000 (13:52 +0000)
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>
epan/packet.c

index 5e0142c77fcecc16251b3b842076b1e79e2af204..d69e540e73d02bd3b158870b33d6185e32e975e1 100644 (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))