sbase

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

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

comm: minor optimization

Diffstat:
comm.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]);