aboutsummaryrefslogtreecommitdiffstats
path: root/src/unistd/execat.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-13 02:59:03 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-13 02:59:03 +0200
commitad9066c272093fc16c55f142e844959cdba25804 (patch)
tree306847f6385522918526e434cce21c7690f059ad /src/unistd/execat.c
parentc revision warnings for stdarg.h (diff)
downloadslibc-ad9066c272093fc16c55f142e844959cdba25804.tar.gz
slibc-ad9066c272093fc16c55f142e844959cdba25804.tar.bz2
slibc-ad9066c272093fc16c55f142e844959cdba25804.tar.xz
fix use of va_copy
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/unistd/execat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unistd/execat.c b/src/unistd/execat.c
index e244812..a90fffb 100644
--- a/src/unistd/execat.c
+++ b/src/unistd/execat.c
@@ -66,6 +66,7 @@ static void vexecat(int dirfd, const char* file, va_list argv, int fetch_envp, i
for (i = 0; i < n; i++)
argv_[i] = va_arg(argv, char*);
+ va_end(args);
(void)(use_path ? execvpeat : execveat)(dirfd, file, argv_, envp, flags);
}