summaryrefslogtreecommitdiff
path: root/src/fcntl
diff options
context:
space:
mode:
Diffstat (limited to 'src/fcntl')
-rw-r--r--src/fcntl/openat.c2
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;