From fcd5865f3ff7e966b376a2073d8477b1ef37fc25 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 30 Jan 2019 18:09:52 +0100 Subject: [PATCH] s3:vfs: Initialize pid to 0 in test_netatalk_lock() BUG: https://bugzilla.samba.org/show_bug.cgi?id=13770 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison (cherry picked from commit 2ff2594b2bd878928cec30bc72a95a6d38bee154) --- source3/modules/vfs_fruit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index c801f98eafb..f54038f53d4 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -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) { -- 2.11.4.GIT