From: Volker Lendecke Date: Thu, 18 Nov 2004 16:14:13 +0000 (+0000) Subject: r3853: Fix an uninitialized variable warning. Jeremy, there are some of these in X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5571 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=650d52648dbf67f71d7619ffb8bf32d93a15ae9c;p=thirdparty%2Fsamba.git r3853: Fix an uninitialized variable warning. Jeremy, there are some of these in charcnv.c. Volker --- diff --git a/source/smbd/open.c b/source/smbd/open.c index 55970493fa1..1b5ba1228f4 100644 --- a/source/smbd/open.c +++ b/source/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))