aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lin.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2024-04-02 14:37:13 +0200
committerAndersBroman <a.broman58@gmail.com>2024-04-05 21:38:28 +0000
commitd0b143bbecf422db5b6f51b549726786e85a3540 (patch)
treedfc9976aadc230136d47e596d7329e7c5ebe23fe /epan/dissectors/packet-lin.c
parentc47011890a8cb5749cb6dcdb328743a0e2c4778d (diff)
Remove init to zero for static variables
The C standard requires that objects with static storage duration is initialized to zero.
Diffstat (limited to 'epan/dissectors/packet-lin.c')
-rw-r--r--epan/dissectors/packet-lin.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-lin.c b/epan/dissectors/packet-lin.c
index 7c805988be..14be6cb794 100644
--- a/epan/dissectors/packet-lin.c
+++ b/epan/dissectors/packet-lin.c
@@ -121,10 +121,10 @@ typedef struct _interface_config {
#define DATAFILE_LIN_INTERFACE_MAPPING "LIN_interface_mapping"
-static GHashTable *data_lin_interfaces_by_id = NULL;
-static GHashTable *data_lin_interfaces_by_name = NULL;
-static interface_config_t* interface_configs = NULL;
-static guint interface_config_num = 0;
+static GHashTable *data_lin_interfaces_by_id;
+static GHashTable *data_lin_interfaces_by_name;
+static interface_config_t* interface_configs;
+static guint interface_config_num;
UAT_HEX_CB_DEF(interface_configs, interface_id, interface_config_t)
UAT_CSTRING_CB_DEF(interface_configs, interface_name, interface_config_t)
@@ -291,9 +291,9 @@ typedef struct _sender_receiver_config {
#define DATAFILE_LIN_SENDER_RECEIVER "LIN_senders_receivers"
-static GHashTable *data_sender_receiver = NULL;
-static sender_receiver_config_t* sender_receiver_configs = NULL;
-static guint sender_receiver_config_num = 0;
+static GHashTable *data_sender_receiver;
+static sender_receiver_config_t* sender_receiver_configs;
+static guint sender_receiver_config_num;
UAT_HEX_CB_DEF(sender_receiver_configs, bus_id, sender_receiver_config_t)
UAT_HEX_CB_DEF(sender_receiver_configs, lin_id, sender_receiver_config_t)