summaryrefslogtreecommitdiff
path: root/src/shared/conf-parser.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-31 17:24:26 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-31 18:24:53 +0200
commit9fd8d678ba41ad39348758d5d329fe8d4451813f (patch)
tree20705172c5c4eede14dfbf7375e0d42494fb33c6 /src/shared/conf-parser.c
parent0a94e77ed4cf5480f2ea0aac373392a9bb48571d (diff)
downloadsystemd-9fd8d678ba41ad39348758d5d329fe8d4451813f.tar.gz
shared/conf-parser: fix unitialized variable
Introduced in 4f9ff96a55187927a4164a19df580329f4c6522b.
Diffstat (limited to 'src/shared/conf-parser.c')
-rw-r--r--src/shared/conf-parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
index 9dfa190751..fa4079cff7 100644
--- a/src/shared/conf-parser.c
+++ b/src/shared/conf-parser.c
@@ -300,7 +300,8 @@ int config_parse(
(void) stat_warn_permissions(filename, &st);
mtime = timespec_load(&st.st_mtim);
- }
+ } else
+ mtime = 0;
for (;;) {
_cleanup_free_ char *buf = NULL;