summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-11-18 16:14:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:21 -0500
commitea9f97886b8b76bc0d74f10eb7dfa53323b7e159 (patch)
treec6949f2a998ec434942d3c19bc82f1fc4110d3b4 /source3
parent36913aa038d8a56866a87d46741ee793189384e9 (diff)
downloadsamba-ea9f97886b8b76bc0d74f10eb7dfa53323b7e159.tar.gz
samba-ea9f97886b8b76bc0d74f10eb7dfa53323b7e159.tar.bz2
samba-ea9f97886b8b76bc0d74f10eb7dfa53323b7e159.zip
r3853: Fix an uninitialized variable warning. Jeremy, there are some of these in
charcnv.c. Volker (This used to be commit 650d52648dbf67f71d7619ffb8bf32d93a15ae9c)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 55970493fa..1b5ba1228f 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1376,6 +1376,8 @@ flags=0x%X flags2=0x%X mode=0%o returned %d\n",
(*Access) = open_mode;
}
+ action = 0;
+
if (file_existed && !(flags2 & O_TRUNC))
action = FILE_WAS_OPENED;
if (file_existed && (flags2 & O_TRUNC))