]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-unit-util: remove unnecessary oom check
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Dec 2017 07:32:59 +0000 (16:32 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 15 Dec 2017 00:10:17 +0000 (09:10 +0900)
We cannot detect error by alloca().

src/shared/bus-unit-util.c

index b58abed2b53c37acc0f661927fcbaeb3eeb70a63..4a9d249f289a97321615a6d7615665b4fa620924 100644 (file)
@@ -153,8 +153,6 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen
 
                 l = strlen(field);
                 n = newa(char, l + 2);
-                if (!n)
-                        return log_oom();
 
                 /* Change suffix Sec → USec */
                 strcpy(mempcpy(n, field, l - 3), "USec");