summaryrefslogtreecommitdiffstats
path: root/src/H5system.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-08-27 14:03:51 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-08-27 14:03:51 (GMT)
commitd42de626b604b75963fd593a145fd9c9b9e20602 (patch)
tree9e59d21b8fb106bbb3669a5167923867dd16d01e /src/H5system.c
parent6e8c48182fe463721f23597b64127863291cb35a (diff)
downloadhdf5-d42de626b604b75963fd593a145fd9c9b9e20602.zip
hdf5-d42de626b604b75963fd593a145fd9c9b9e20602.tar.gz
hdf5-d42de626b604b75963fd593a145fd9c9b9e20602.tar.bz2
Fixed a bug where we incorrectly pass a lock struct to fcntl
for file locking instead of a pointer.
Diffstat (limited to 'src/H5system.c')
-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;