Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 2015 04:27:51 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r281723 - head/usr.bin/calendar
Message-ID:  <201504190427.t3J4RpHI035755@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sun Apr 19 04:27:50 2015
New Revision: 281723
URL: https://svnweb.freebsd.org/changeset/base/281723

Log:
  calendar: remove useless check
  	lineline checked for 0 in the while loop condition.  There is no need to
  	check for it additionally in the body.
  
  CID:	1288959
  MFC After:	1 week

Modified:
  head/usr.bin/calendar/io.c

Modified: head/usr.bin/calendar/io.c
==============================================================================
--- head/usr.bin/calendar/io.c	Sun Apr 19 01:23:12 2015	(r281722)
+++ head/usr.bin/calendar/io.c	Sun Apr 19 04:27:50 2015	(r281723)
@@ -257,9 +257,6 @@ cal_parse(FILE *in, FILE *out)
 		return (1);
 
 	while ((linelen = getline(&line, &linecap, in)) > 0) {
-		if (linelen == 0)
-			continue;
-
 		if (*line == '#') {
 			switch (token(line+1, out, &skip)) {
 			case T_ERR:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504190427.t3J4RpHI035755>