s4-pvfs: another uninitialised variable
authorAndrew Tridgell <tridge@samba.org>
Mon, 19 Oct 2009 01:59:49 +0000 (12:59 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 19 Oct 2009 02:51:17 +0000 (13:51 +1100)
thanks to valgrind for this one

source4/ntvfs/posix/pvfs_unlink.c

index e10b2e3eef8a32a521bb7652611f4603ef8b8491..67e7d76b47f6fbd116dccd84f6523b4fdce68c87 100644 (file)
@@ -109,7 +109,7 @@ static NTSTATUS pvfs_unlink_setup_retry(struct ntvfs_module_context *ntvfs,
 static NTSTATUS pvfs_unlink_file(struct pvfs_state *pvfs,
                                 struct pvfs_filename *name)
 {
-       NTSTATUS status;
+       NTSTATUS status = NT_STATUS_OK;
 
        if (name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY) {
                return NT_STATUS_FILE_IS_A_DIRECTORY;