comm: minor optimization
This commit is contained in:
parent
9144d51594
commit
44298e54e6
2
comm.c
2
comm.c
@ -66,7 +66,7 @@ main(int argc, char *argv[])
|
|||||||
continue;
|
continue;
|
||||||
if (ferror(fp[i]))
|
if (ferror(fp[i]))
|
||||||
eprintf("getline %s:", argv[i]);
|
eprintf("getline %s:", argv[i]);
|
||||||
if (diff && strlen(line[!i]))
|
if (diff && line[!i][0])
|
||||||
printline(!i, line[!i]);
|
printline(!i, line[!i]);
|
||||||
while (getline(&line[!i], &linelen[!i], fp[!i]) >= 0)
|
while (getline(&line[!i], &linelen[!i], fp[!i]) >= 0)
|
||||||
printline(!i, line[!i]);
|
printline(!i, line[!i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user