From a172badb03c22d3ad1b00ff16f458b071063db18 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 29 Jul 2015 14:15:14 +0200 Subject: [PATCH] hwclock: make static analyzes more happy Signed-off-by: Karel Zak --- sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index cadbf30756..f04cf2b080 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -1260,7 +1260,7 @@ manipulate_clock(const bool show, const bool adjust, const bool noadjfile, const bool testing, const bool predict, const bool get) { /* Contents of the adjtime file, or what they should be. */ - struct adjtime adjtime; + struct adjtime adjtime = { 0 }; bool universal; /* Set if user lacks necessary authorization to access the clock */ bool no_auth; -- 2.47.3