Skip to content

Commit

Permalink
journalctl: always initialize global variables
Browse files Browse the repository at this point in the history
That's not necessary, as they are initialized with zero, but for safety
and readability.
  • Loading branch information
yuwata committed May 28, 2023
1 parent 059b1b3 commit 4f0165f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/journal/journalctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4f0165f

Please sign in to comment.