mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
basic/path-util: use FLAGS_SET in one more place
This commit is contained in:
parent
d94a24ca2e
commit
5c270a18da
@ -999,11 +999,9 @@ int path_simplify_and_warn(
|
||||
unsigned line,
|
||||
const char *lvalue) {
|
||||
|
||||
bool fatal, absolute;
|
||||
bool absolute, fatal = flag & PATH_CHECK_FATAL;
|
||||
|
||||
assert((flag & (PATH_CHECK_ABSOLUTE | PATH_CHECK_RELATIVE)) != (PATH_CHECK_ABSOLUTE | PATH_CHECK_RELATIVE));
|
||||
|
||||
fatal = flag & PATH_CHECK_FATAL;
|
||||
assert(!FLAGS_SET(flag, PATH_CHECK_ABSOLUTE | PATH_CHECK_RELATIVE));
|
||||
|
||||
if (!utf8_is_valid(path)) {
|
||||
log_syntax_invalid_utf8(unit, LOG_ERR, filename, line, path);
|
||||
|
Loading…
Reference in New Issue
Block a user