From: Rich Felker Date: Fri, 31 Oct 2014 19:35:24 +0000 (-0400) Subject: fix uninitialized mode variable in openat function X-Git-Tag: v1.1.6~60 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e146e6035fecea080fb17450db3c8bb44d36e07d;p=oweals%2Fmusl.git fix uninitialized mode variable in openat function this was introduced in commit 2da3ab1382ca8e39eb1e4428103764a81fba73d3 as an oversight while making the variadic argument access conditional. --- 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;