mirror of git://git.musl-libc.org/musl
fix uninitialized mode variable in openat function
this was introduced in commit 2da3ab1382
as an oversight while making the variadic argument access conditional.
This commit is contained in:
parent
0ce946cf80
commit
e146e6035f
|
@ -5,7 +5,7 @@
|
|||
|
||||
int openat(int fd, const char *filename, int flags, ...)
|
||||
{
|
||||
mode_t mode;
|
||||
mode_t mode = 0;
|
||||
|
||||
if ((flags & O_CREAT) || (flags & O_TMPFILE) == O_TMPFILE) {
|
||||
va_list ap;
|
||||
|
|
Loading…
Reference in New Issue