s3:vfs: Initialize pid to 0 in test_netatalk_lock()
authorAndreas Schneider <asn@samba.org>
Wed, 30 Jan 2019 17:09:52 +0000 (18:09 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 21 Feb 2019 11:31:46 +0000 (12:31 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13770

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 2ff2594b2bd878928cec30bc72a95a6d38bee154)

source3/modules/vfs_fruit.c

index d57bc43433f7bea00c37123b75396597bce44bd9..773186af42c95e3f84fa803d0f2af6583db56625 100644 (file)
@@ -2647,7 +2647,7 @@ static bool test_netatalk_lock(files_struct *fsp, off_t in_offset)
        off_t offset = in_offset;
        off_t len = 1;
        int type = F_WRLCK;
-       pid_t pid;
+       pid_t pid = 0;
 
        result = SMB_VFS_GETLOCK(fsp, &offset, &len, &type, &pid);
        if (result == false) {