sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 44298e54e6a8c0e479f011e3d2e66095465e2675
parent 9144d51594d8b35f01da352bed0282afbbc39a24
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 27 Mar 2015 15:53:46 +0100

comm: minor optimization

Diffstat:
Mcomm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/comm.c b/comm.c @@ -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]);