add missing va_end in execl* for correcness and static code analyzers

This commit is contained in:
Szabolcs Nagy
2013-10-07 13:24:00 +00:00
parent 49b3a0d2ce
commit c3a43b35cc
3 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ int execlp(const char *file, const char *argv0, ...)
for (i=1; i<argc; i++)
argv[i] = va_arg(ap, char *);
argv[i] = NULL;
va_end(ap);
return execvp(file, argv);
}
}