summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-01-30 18:09:52 +0100
committerKarolin Seeger <kseeger@samba.org>2019-02-21 12:31:46 +0100
commit53d2623b2fdb744cb8633372ddb4d2a786062627 (patch)
treee0441e58ec6dc969e11a1333b0bef30e7a101147 /source3
parenteb425d50447f25b349d478a3e89829d0fbf9ccaf (diff)
downloadsamba-53d2623b2fdb744cb8633372ddb4d2a786062627.tar.gz
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 <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 2ff2594b2bd878928cec30bc72a95a6d38bee154)
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_fruit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c
index d57bc43433f..773186af42c 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) {