提交 e146e603 编写于 作者: R Rich Felker

fix uninitialized mode variable in openat function

this was introduced in commit 2da3ab13
as an oversight while making the variadic argument access conditional.
上级 0ce946cf
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册