chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
man: fix a bunch of typos in docs
[elogind.git]
/
src
/
core
/
load-fragment.c
diff --git
a/src/core/load-fragment.c
b/src/core/load-fragment.c
index 10681307cfc2fe3d7d628a2f6dca6aa3faae590c..c6422619f5d008db5dcd104c1347a88340d635f1 100644
(file)
--- a/
src/core/load-fragment.c
+++ b/
src/core/load-fragment.c
@@
-1516,14
+1516,17
@@
int config_parse_unit_condition_string(
assert(rvalue);
assert(data);
assert(rvalue);
assert(data);
- if ((trigger = rvalue[0] == '|'))
+ trigger = rvalue[0] == '|';
+ if (trigger)
rvalue++;
rvalue++;
- if ((negate = rvalue[0] == '!'))
+ negate = rvalue[0] == '!';
+ if (negate)
rvalue++;
rvalue++;
- if (!(c = condition_new(cond, rvalue, trigger, negate)))
- return -ENOMEM;
+ c = condition_new(cond, rvalue, trigger, negate);
+ if (!c)
+ return log_oom();
LIST_PREPEND(Condition, conditions, u->conditions, c);
return 0;
LIST_PREPEND(Condition, conditions, u->conditions, c);
return 0;
@@
-2028,7
+2031,7
@@
int config_parse_syscall_filter(
ExecContext *c = data;
Unit *u = userdata;
ExecContext *c = data;
Unit *u = userdata;
- bool invert;
+ bool invert
= false
;
char *w;
size_t l;
char *state;
char *w;
size_t l;
char *state;