projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ab6544
)
fix uninitialized mode variable in openat function
author
Rich Felker
<dalias@aerifal.cx>
Fri, 31 Oct 2014 19:35:24 +0000
(15:35 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 30 Mar 2015 05:41:32 +0000
(
01:41
-0400)
this was introduced in commit
2da3ab1382ca8e39eb1e4428103764a81fba73d3
as an oversight while making the variadic argument access conditional.
(cherry picked from commit
e146e6035fecea080fb17450db3c8bb44d36e07d
)
src/fcntl/openat.c
patch
|
blob
|
history
diff --git
a/src/fcntl/openat.c
b/src/fcntl/openat.c
index 4faeb29613ab5e0a5a45bdcba5bd059260bebfd1..e741336c6f5587d3c4e8db596b41e48f73601a3b 100644
(file)
--- 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;