From: Krzysztof Matczak Date: Sun, 25 Dec 2016 14:50:19 +0000 (+0000) Subject: workaround for zero initializer false warning X-Git-Tag: collectd-5.8.0~257^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fa4bfcc52045a8733011d0304356ae0570d0abb3;p=collectd.git workaround for zero initializer false warning Change-Id: I77a8ca1d5854ebda8533483cdd5ea08c3c07a059 Signed-off-by: Krzysztof Matczak --- diff --git a/src/mcelog.c b/src/mcelog.c index 9fad0be8..6dbfafce 100644 --- a/src/mcelog.c +++ b/src/mcelog.c @@ -64,14 +64,14 @@ struct socket_adapter_s { }; typedef struct mcelog_memory_rec_s { - char location[DATA_MAX_NAME_LEN]; /* SOCKET x CHANNEL x DIMM x*/ - char dimm_name[DATA_MAX_NAME_LEN]; /* DMI_NAME "DIMM_F1" */ int corrected_err_total; /* x total*/ int corrected_err_timed; /* x in 24h*/ char corrected_err_timed_period[DATA_MAX_NAME_LEN]; int uncorrected_err_total; /* x total*/ int uncorrected_err_timed; /* x in 24h*/ char uncorrected_err_timed_period[DATA_MAX_NAME_LEN]; + char location[DATA_MAX_NAME_LEN]; /* SOCKET x CHANNEL x DIMM x*/ + char dimm_name[DATA_MAX_NAME_LEN]; /* DMI_NAME "DIMM_F1" */ } mcelog_memory_rec_t; static int socket_close(socket_adapter_t *self);