bus-unit-util: remove unnecessary oom check

We cannot detect error by alloca().
This commit is contained in:
Yu Watanabe
2017-12-15 09:10:17 +09:00
parent a1b2c92d82
commit ed7e9b34ce
-2
View 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");