[hackers] [sbase] comm: minor optimization || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 28 Mar 2015 22:03:52 +0100 (CET)

commit 44298e54e6a8c0e479f011e3d2e66095465e2675
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Mar 27 15:53:46 2015 +0100

    comm: minor optimization

diff --git a/comm.c b/comm.c
index 84c9fb3..ac60d0d 100644
--- a/comm.c
+++ b/comm.c
_AT_@ -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]);
Received on Sat Mar 28 2015 - 22:03:52 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 28 2015 - 22:12:21 CET