* fhandler_tty.cc (fhandler_tty_slave::fchown): Initialize mode to 0.

This commit is contained in:
Corinna Vinschen 2010-11-18 18:55:10 +00:00
parent 1570248800
commit 5c6904b515
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-11-18 Corinna Vinschen <corinna@vinschen.de>
* fhandler_tty.cc (fhandler_tty_slave::fchown): Initialize mode to 0.
2010-11-15 Corinna Vinschen <corinna@vinschen.de>
* posix.sgml: Move llround and llroundf to implemented SUSv4 functions.

View File

@ -1306,7 +1306,7 @@ fhandler_tty_slave::fchown (__uid32_t uid, __gid32_t gid)
{
int ret = -1;
bool to_close = false;
mode_t mode;
mode_t mode = 0;
__uid32_t o_uid;
__gid32_t o_gid;
security_descriptor sd;