Commit 8463ede5 authored by Hardy Simpson's avatar Hardy Simpson
parent ca6162be
......@@ -795,10 +795,7 @@ zlog_rule_t *zlog_rule_new(char *line,
}
p = strchr(a_rule->archive_path, '#');
if ( (p == NULL) && (
(strchr(p, 'r') == NULL) || (strchr(p, 's') == NULL)
)
) {
if ( (p == NULL) || ((strchr(p, 'r') == NULL) || (strchr(p, 's') == NULL))) {
zc_error("archive_path must contain #r or #s");
goto err;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment