about summary refs log tree commit diff
path: root/misc/mntent_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mntent_r.c')
-rw-r--r--misc/mntent_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/mntent_r.c b/misc/mntent_r.c
index 7d86626fb5..1a87105657 100644
--- a/misc/mntent_r.c
+++ b/misc/mntent_r.c
@@ -38,7 +38,7 @@ __setmntent (const char *file, const char *mode)
 
   if (result != NULL)
     /* We do the locking ourselves.  */
-    __fsetlocking (fp, FSETLOCKING_BYCALLER);
+    __fsetlocking (result, FSETLOCKING_BYCALLER);
 
   return result;
 }