changeset 359:84e6b552f6ad

minor refactoring
author markus schnalke <meillo@marmaro.de>
date Sun, 04 Sep 2011 17:40:13 +0200
parents 92340177150d
children 7a8d706f0ff1
files src/conf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/conf.c	Sun Sep 04 12:19:41 2011 +0200
+++ b/src/conf.c	Sun Sep 04 17:40:13 2011 +0200
@@ -260,7 +260,7 @@
 
 	p = line;
 	q = buf;
-	while ((*p != '\0') && (*p != '/') && (q < buf + 255))
+	while (*p && (*p != '/') && (q < buf + 255))
 		*(q++) = *(p++);
 	*q = '\0';