Comment about the validity of errno.
authorBruno Haible <bruno@clisp.org>
Wed, 17 Sep 2003 12:46:33 +0000 (12:46 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 17 Sep 2003 12:46:33 +0000 (12:46 +0000)
lib/mountlist.c

index 096593f..9051e81 100644 (file)
@@ -612,6 +612,7 @@ read_filesystem_list (int need_fs_type)
 
     if (ferror (fp))
       {
+       /* The last fread() call must have failed.  */
        int saved_errno = errno;
        fclose (fp);
        errno = saved_errno;