]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
We know nbytes is 0, so remove it from bail-out test.
authorJim Meyering <jim@meyering.net>
Sun, 6 Aug 2000 15:08:29 +0000 (15:08 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 6 Aug 2000 15:08:29 +0000 (15:08 +0000)
src/tail.c

index 5eaa2f9688cfb3301f834cef27679d88a4f137ed..37dd5061a2e303109d14def3f8da28e784b92b85 100644 (file)
@@ -523,7 +523,7 @@ pipe_lines (const char *pretty_filename, int fd, long int n_lines)
     }
 
   /* If the file is empty, then bail out.  */
-  if (nbytes + last->nbytes == 0)
+  if (last->nbytes == 0)
     goto free_lbuffers;
 
   /* This prevents a core dump when the pipe contains no newlines.  */