s3 OneFS: Fix uninitialized variable
authorTim Prouty <tprouty@samba.org>
Wed, 25 Feb 2009 05:53:30 +0000 (21:53 -0800)
committerTim Prouty <tprouty@samba.org>
Wed, 25 Feb 2009 05:55:44 +0000 (21:55 -0800)
source3/modules/onefs_acl.c

index b8097b6455ed339c1532446f15d5388066a32104..a1bfa6e121e19659605d2a53fbf1d696374ac478 100644 (file)
@@ -890,7 +890,7 @@ onefs_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
                  uint32 security_info_sent, SEC_DESC *psd)
 {
        struct ifs_security_descriptor sd = {};
-       int fd;
+       int fd = -1;
        bool fopened = false;
        NTSTATUS status;