diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/generator.c b/src/shared/generator.c index 5d5b6a0a61..2f9e5954c2 100644 --- a/src/shared/generator.c +++ b/src/shared/generator.c @@ -125,7 +125,7 @@ int generator_write_timeouts(const char *dir, const char *what, const char *wher char *prefix, *postfix; prefix = strndupa(opts, start - opts - (start != opts)); - postfix = timeout + len + (timeout[len] != '\0'); + postfix = timeout + len + (start == opts && timeout[len] != '\0'); *filtered = strjoin(prefix, *postfix ? postfix : NULL, NULL); if (!*filtered) return log_oom(); |