]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logs: strndupa() cannot fail
authorLennart Poettering <lennart@poettering.net>
Mon, 25 May 2020 17:34:51 +0000 (19:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 May 2020 08:41:30 +0000 (10:41 +0200)
src/shared/logs-show.c

index f83c0d55243197595f72f729d8a785a32fc9901a..570377dc7692b2d21cefef17c154fef66b5c3bbc 100644 (file)
@@ -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);
 }