about summary refs log tree commit diff
path: root/manual/filesys.texi
diff options
context:
space:
mode:
Diffstat (limited to 'manual/filesys.texi')
-rw-r--r--manual/filesys.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/manual/filesys.texi b/manual/filesys.texi
index 302010f78f..518b9e2f5a 100644
--- a/manual/filesys.texi
+++ b/manual/filesys.texi
@@ -2190,8 +2190,9 @@ without changing it permanently:
 mode_t
 read_umask (void)
 @{
-  mask = umask (0);
+  mode_t mask = umask (0);
   umask (mask);
+  return mask;
 @}
 @end smallexample