summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-09-16 23:24:25 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-09-16 23:24:25 (GMT)
commit247738c23af1a19ba2c4a7c098398b91b84b71cb (patch)
tree5a2d7ab0f1160c34eb472a418ebea45ef213e4f4 /src
parent5dbb76ebca3aeca2bfc64649d02abab9d4d3bc25 (diff)
downloadhdf5-247738c23af1a19ba2c4a7c098398b91b84b71cb.zip
hdf5-247738c23af1a19ba2c4a7c098398b91b84b71cb.tar.gz
hdf5-247738c23af1a19ba2c4a7c098398b91b84b71cb.tar.bz2
Fixed a bug where we incorrectly pass a lock struct to fcntl
for file locking instead of a pointer. (HDFFV-10892)
Diffstat (limited to 'src')
-rw-r--r--src/H5system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5system.c b/src/H5system.c
index 1d47d13..384360d 100644
--- a/src/H5system.c
+++ b/src/H5system.c
@@ -631,7 +631,7 @@ Pflock(int fd, int operation) {
flk.l_pid = 0; /* not used with set */
/* Lock or unlock */
- if(HDfcntl(fd, F_SETLK, flk) < 0)
+ if(HDfcntl(fd, F_SETLK, &flk) < 0)
return -1;
return 0;