=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/look/look.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- src/usr.bin/look/look.c 2016/09/13 15:27:47 1.19 +++ src/usr.bin/look/look.c 2017/01/21 08:51:00 1.20 @@ -1,4 +1,4 @@ -/* $OpenBSD: look.c,v 1.19 2016/09/13 15:27:47 millert Exp $ */ +/* $OpenBSD: look.c,v 1.20 2017/01/21 08:51:00 krw Exp $ */ /* $NetBSD: look.c,v 1.7 1995/08/31 22:41:02 jtc Exp $ */ /*- @@ -134,7 +134,7 @@ char *readp, *writep; /* Reformat string to avoid doing it multiple times later. */ - for (readp = writep = string; ch = *readp++;) { + for (readp = writep = string; (ch = *readp++);) { if (fflag) ch = tolower((unsigned char)ch); if (!dflag || isalnum((unsigned char)ch))