chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
terminal/screen: add color converter
[elogind.git]
/
src
/
core
/
execute.c
diff --git
a/src/core/execute.c
b/src/core/execute.c
index 07ec7a28d642bb5b069973ca4bb9c9bee1deff58..8b9bb27137c24b3cefbbbb4deca9bcae122deff6 100644
(file)
--- a/
src/core/execute.c
+++ b/
src/core/execute.c
@@
-2567,8
+2567,8
@@
int exec_command_set(ExecCommand *c, const char *path, ...) {
}
int exec_command_append(ExecCommand *c, const char *path, ...) {
}
int exec_command_append(ExecCommand *c, const char *path, ...) {
+ _cleanup_strv_free_ char **l = NULL;
va_list ap;
va_list ap;
- char **l;
int r;
assert(c);
int r;
assert(c);
@@
-2582,10
+2582,8
@@
int exec_command_append(ExecCommand *c, const char *path, ...) {
return -ENOMEM;
r = strv_extend_strv(&c->argv, l);
return -ENOMEM;
r = strv_extend_strv(&c->argv, l);
- if (r < 0) {
- strv_free(l);
+ if (r < 0)
return r;
return r;
- }
return 0;
}
return 0;
}