comm: minor optimization

This commit is contained in:
Hiltjo Posthuma 2015-03-27 15:53:46 +01:00
parent 9144d51594
commit 44298e54e6

2
comm.c
View File

@ -66,7 +66,7 @@ main(int argc, char *argv[])
continue;
if (ferror(fp[i]))
eprintf("getline %s:", argv[i]);
if (diff && strlen(line[!i]))
if (diff && line[!i][0])
printline(!i, line[!i]);
while (getline(&line[!i], &linelen[!i], fp[!i]) >= 0)
printline(!i, line[!i]);