From: Yu Watanabe Date: Thu, 4 May 2023 00:39:50 +0000 (+0900) Subject: journalctl: always initialize global variables X-Git-Tag: v254-rc1~337^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f0165fd34fcae33fd4b38f6d3641be75193ec0e;p=thirdparty%2Fsystemd.git journalctl: always initialize global variables That's not necessary, as they are initialized with zero, but for safety and readability. --- diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index c53f2d5847a..d5172a38422 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -115,7 +115,7 @@ static char *arg_verify_key = NULL; static usec_t arg_interval = DEFAULT_FSS_INTERVAL_USEC; static bool arg_force = false; #endif -static usec_t arg_since, arg_until; +static usec_t arg_since = 0, arg_until = 0; static bool arg_since_set = false, arg_until_set = false; static char **arg_syslog_identifier = NULL; static char **arg_system_units = NULL;