diff src/conf.c @ 359:84e6b552f6ad

minor refactoring
author markus schnalke <meillo@marmaro.de>
date Sun, 04 Sep 2011 17:40:13 +0200
parents 04744e3e8b18
children 41958685480d
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';