diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-10-31 15:35:24 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-10-31 15:35:24 -0400 |
commit | e146e6035fecea080fb17450db3c8bb44d36e07d (patch) | |
tree | 919bac533e5992f911c8dfbfa7eef8e4966b3b96 /src | |
parent | 0ce946cf808274c2d6e5419b139e130c8ad4bd30 (diff) | |
download | musl-e146e6035fecea080fb17450db3c8bb44d36e07d.tar.gz musl-e146e6035fecea080fb17450db3c8bb44d36e07d.tar.xz musl-e146e6035fecea080fb17450db3c8bb44d36e07d.zip |
fix uninitialized mode variable in openat function
this was introduced in commit 2da3ab1382ca8e39eb1e4428103764a81fba73d3 as an oversight while making the variadic argument access conditional.
Diffstat (limited to 'src')
-rw-r--r-- | src/fcntl/openat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcntl/openat.c b/src/fcntl/openat.c index 4faeb296..e741336c 100644 --- a/src/fcntl/openat.c +++ b/src/fcntl/openat.c @@ -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; |