=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cfg.c,v retrieving revision 1.41 retrieving revision 1.42 diff -u -r1.41 -r1.42 --- src/usr.bin/tmux/cfg.c 2015/09/01 10:10:59 1.41 +++ src/usr.bin/tmux/cfg.c 2015/09/09 12:09:21 1.42 @@ -1,4 +1,4 @@ -/* $OpenBSD: cfg.c,v 1.41 2015/09/01 10:10:59 nicm Exp $ */ +/* $OpenBSD: cfg.c,v 1.42 2015/09/09 12:09:21 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -98,7 +98,7 @@ } found = 0; - while ((buf = fparseln(f, NULL, &line, delim, 0))) { + while ((buf = fparseln(f, NULL, &line, delim, 0)) != NULL) { log_debug("%s: %s", path, buf); /* Skip empty lines. */