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.

(cherry picked from commit 4f0165f)
  • Loading branch information
yuwata authored and bluca committed Jul 7, 2023
1 parent 9d9351b commit 826ea65
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 @@ -112,7 +112,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 826ea65

Please sign in to comment.