changeset 111:43798acdfbc9

simplified a bit-operation based condition
author meillo@marmaro.de
date Tue, 29 Jun 2010 11:42:51 +0200
parents c678d0342451
children c2f1ba43ae0c
files src/accept.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/accept.c	Tue Jun 29 11:40:37 2010 +0200
+++ b/src/accept.c	Tue Jun 29 11:42:51 2010 +0200
@@ -92,7 +92,7 @@
 		}
 
 		if (len <= 0) {
-			if ((len == -1) && ((flags & ACC_DOT_IGNORE) || (flags & ACC_NODOT_RELAX))) {
+			if ((len == -1) && (flags & (ACC_DOT_IGNORE | ACC_NODOT_RELAX))) {
 				/* we got an EOF, and the last line was not terminated by a CR */
 				gint len1 = strlen(line1);
 				if (len1 > 0) {  /* == 0 is 'normal' (EOF after a CR) */