From ea9f97886b8b76bc0d74f10eb7dfa53323b7e159 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 18 Nov 2004 16:14:13 +0000 Subject: r3853: Fix an uninitialized variable warning. Jeremy, there are some of these in charcnv.c. Volker (This used to be commit 650d52648dbf67f71d7619ffb8bf32d93a15ae9c) --- source3/smbd/open.c | 2 ++ 1 file changed, 2 insertions(+) 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)) -- cgit