summaryrefslogtreecommitdiff
path: root/src/process/execl.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-10-07 13:24:00 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-10-07 13:24:00 +0000
commitc3a43b35cc52a7fac93a8c1030d94c919c3ab0eb (patch)
tree028ac857e1d19b349029ebacb3d947ee00840c0d /src/process/execl.c
parent49b3a0d2cedd3693d77924fdc0a7719a75bd28da (diff)
downloadmusl-c3a43b35cc52a7fac93a8c1030d94c919c3ab0eb.tar.gz
add missing va_end in execl* for correcness and static code analyzers
Diffstat (limited to 'src/process/execl.c')
-rw-r--r--src/process/execl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/process/execl.c b/src/process/execl.c
index 327d78b2..5ee5c81e 100644
--- a/src/process/execl.c
+++ b/src/process/execl.c
@@ -16,6 +16,7 @@ int execl(const char *path, const char *argv0, ...)
for (i=1; i<argc; i++)
argv[i] = va_arg(ap, char *);
argv[i] = NULL;
+ va_end(ap);
return execv(path, argv);
}
}