From 4f0165fd34fcae33fd4b38f6d3641be75193ec0e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 4 May 2023 09:39:50 +0900 Subject: [PATCH] journalctl: always initialize global variables That's not necessary, as they are initialized with zero, but for safety and readability. --- src/journal/journalctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3