diff options
Diffstat (limited to 'src/basic/clock-util.c')
-rw-r--r-- | src/basic/clock-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/clock-util.c b/src/basic/clock-util.c index 7fe8d35ea5..e2499099b6 100644 --- a/src/basic/clock-util.c +++ b/src/basic/clock-util.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ /*** This file is part of systemd. @@ -72,7 +73,7 @@ int clock_set_hwclock(const struct tm *tm) { int clock_is_localtime(const char* adjtime_path) { _cleanup_fclose_ FILE *f; - if (adjtime_path == NULL) + if (!adjtime_path) adjtime_path = "/etc/adjtime"; /* |