summaryrefslogtreecommitdiffstats
path: root/src/journal/journalctl.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-05-04 02:39:50 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-05-28 07:52:32 +0200
commit4f0165fd34fcae33fd4b38f6d3641be75193ec0e (patch)
tree57feeeaff21727b8bd5f16cdec83d4798811bcf2 /src/journal/journalctl.c
parentpo: add a false positive to POTFILES.skip (diff)
downloadsystemd-4f0165fd34fcae33fd4b38f6d3641be75193ec0e.tar.xz
systemd-4f0165fd34fcae33fd4b38f6d3641be75193ec0e.zip
journalctl: always initialize global variables
That's not necessary, as they are initialized with zero, but for safety and readability.
Diffstat (limited to '')
-rw-r--r--src/journal/journalctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index c53f2d5847..d5172a3842 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;