From: Jeremy Allison Date: Thu, 28 May 2009 20:33:06 +0000 (-0700) Subject: Fix uninitialized variable use caught by valgrind. X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=62d767d57fafd869ec956cbcc84e8c866c6d665b;p=metze%2Fsamba%2Fwip.git Fix uninitialized variable use caught by valgrind. Jeremy. --- diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 0703f04c5ff9..62d710ede4c1 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -308,7 +308,7 @@ bool cli_unix_stat(struct cli_state *cli, const char *name, SMB_STRUCT_STAT *sbu sbuf->st_uid = (uid_t) IVAL(rdata,40); /* user ID of owner */ sbuf->st_gid = (gid_t) IVAL(rdata,48); /* group ID of owner */ - sbuf->st_mode |= unix_filetype_from_wire(IVAL(rdata, 56)); + sbuf->st_mode = unix_filetype_from_wire(IVAL(rdata, 56)); #if defined(HAVE_MAKEDEV) { uint32 dev_major = IVAL(rdata,60);