X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fexecute.c;h=3ae28ee080af0531863c13da866d393c826f1474;hb=250a918dc4c8a15d927deecc3b3f6a0604657ae4;hp=e04f46f03670f1f82a813b3548ff23152c1ed2a8;hpb=d8c9d3a468e61ee2a2b2c3454e662398b0885411;p=elogind.git diff --git a/src/core/execute.c b/src/core/execute.c index e04f46f03..3ae28ee08 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2214,7 +2214,8 @@ int exec_command_set(ExecCommand *c, const char *path, ...) { if (!l) return -ENOMEM; - if (!(p = strdup(path))) { + p = strdup(path); + if (!p) { strv_free(l); return -ENOMEM; }