diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-31 15:35:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-31 15:35:40 +0200 |
commit | da19d5c19f60ec80e1733b1e994311c59c6eda73 (patch) | |
tree | 1df3b703d728471e1051e23778f857bf4adff23f /src/condition.c | |
parent | ba1a55152c50dfbcd3d4a64353b95f4a2f37985e (diff) |
src: our lord is coverity
Diffstat (limited to 'src/condition.c')
-rw-r--r-- | src/condition.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/condition.c b/src/condition.c index 61812c2570..b404b49c92 100644 --- a/src/condition.c +++ b/src/condition.c @@ -30,7 +30,9 @@ Condition* condition_new(ConditionType type, const char *parameter, bool trigger, bool negate) { Condition *c; - c = new0(Condition, 1); + if (!(c = new0(Condition, 1))) + return NULL; + c->type = type; c->trigger = trigger; c->negate = negate; |