r3853: Fix an uninitialized variable warning. Jeremy, there are some of these in
authorVolker Lendecke <vlendec@samba.org>
Thu, 18 Nov 2004 16:14:13 +0000 (16:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:21 +0000 (10:53 -0500)
charcnv.c.

Volker

source/smbd/open.c

index 55970493fa16edf644cdb020590440426962c7d0..1b5ba1228f48f53ea5e4a5df706df200af43ebe0 100644 (file)
@@ -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))