Added a set of parans to an expression to make things a bit more clear.
authorDavid Greenman <davidg@Root.COM>
Fri, 17 Jun 1994 16:31:51 +0000 (16:31 +0000)
committerDavid Greenman <davidg@Root.COM>
Fri, 17 Jun 1994 16:31:51 +0000 (16:31 +0000)
lib/libc/stdio/fclose.c

index 2842a35..974cd44 100644 (file)
@@ -48,7 +48,7 @@ fclose(fp)
 {
        register int r;
 
 {
        register int r;
 
-       if (!fp || fp->_flags == 0) {   /* not open! */
+       if (!fp || (fp->_flags == 0)) { /* not open! */
                errno = EBADF;
                return (EOF);
        }
                errno = EBADF;
                return (EOF);
        }