chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sd-bus: check return value of asprintf()
[elogind.git]
/
src
/
activate
/
activate.c
diff --git
a/src/activate/activate.c
b/src/activate/activate.c
index 89427738663de4ed8a8e438647b8bf8f810ed3eb..0a1df37f353d8e9e72bbcc85f8335de4faac04bb 100644
(file)
--- a/
src/activate/activate.c
+++ b/
src/activate/activate.c
@@
-242,7
+242,7
@@
static int launch1(const char* child, char** argv, char **env, int fd) {
static int do_accept(const char* name, char **argv, char **envp, int fd) {
_cleanup_free_ char *local = NULL, *peer = NULL;
-
int fd2
;
+
_cleanup_close_ int fd2 = -1
;
fd2 = accept(fd, NULL, NULL);
if (fd2 < 0) {