projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1b2c92
)
bus-unit-util: remove unnecessary oom check
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Thu, 14 Dec 2017 07:32:59 +0000
(16:32 +0900)
committer
Yu 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
patch
|
blob
|
history
diff --git
a/src/shared/bus-unit-util.c
b/src/shared/bus-unit-util.c
index b58abed2b53c37acc0f661927fcbaeb3eeb70a63..4a9d249f289a97321615a6d7615665b4fa620924 100644
(file)
--- a/
src/shared/bus-unit-util.c
+++ b/
src/shared/bus-unit-util.c
@@
-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");