mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
logs: strndupa() cannot fail
This commit is contained in:
parent
2108b56749
commit
2fac514fa9
@ -176,9 +176,6 @@ static int field_set_test(const Set *fields, const char *name, size_t n) {
|
||||
return 1;
|
||||
|
||||
s = strndupa(name, n);
|
||||
if (!s)
|
||||
return log_oom();
|
||||
|
||||
return set_contains(fields, s);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user