summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-01-30 18:09:52 +0100
committerJeremy Allison <jra@samba.org>2019-02-08 23:32:10 +0100
commit2ff2594b2bd878928cec30bc72a95a6d38bee154 (patch)
treee932a57e6c0276cc177e91db5973eb1a34845bd3 /source3/modules
parent28990e4ba23695ecf264117efad90cc4e573302e (diff)
downloadsamba-2ff2594b2bd878928cec30bc72a95a6d38bee154.tar.gz
s3:vfs: Initialize pid to 0 in test_netatalk_lock()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules')
-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 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) {