From: Sebastien GODARD Date: Sat, 4 Apr 2020 07:17:48 +0000 (+0200) Subject: iostat: Make sure pointer on linked list has been initialized X-Git-Tag: v12.3.2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4129679faab71cc671cc3981b43a5201741f7ef6;p=sysstat iostat: Make sure pointer on linked list has been initialized Signed-off-by: Sebastien GODARD --- diff --git a/iostat.c b/iostat.c index 07c4dd7..86eb8d7 100644 --- a/iostat.c +++ b/iostat.c @@ -59,7 +59,7 @@ extern int __env; struct stats_cpu *st_cpu[2]; unsigned long long uptime_cs[2] = {0, 0}; unsigned long long tot_jiffies[2] = {0, 0}; -struct io_device *dev_list; +struct io_device *dev_list = NULL; /* Number of decimal places */ int dplaces_nr = -1;