diff src/online.c @ 51:8a92de5e8907

fixed inverted condition for undefined online_file reported by Juergen Daubert via mailing list the bug was introduced by refactoring (seems we need automated testing)
author meillo@marmaro.de
date Fri, 21 May 2010 14:45:56 +0200
parents e1004fcc93c9
children 3b344bf57162
line wrap: on
line diff
--- a/src/online.c	Thu May 20 21:49:24 2010 +0200
+++ b/src/online.c	Fri May 21 14:45:56 2010 +0200
@@ -84,7 +84,7 @@
 
 	if (strcmp(conf.online_detect, "file") == 0) {
 		DEBUG(3) debugf("online detection method 'file'\n");
-		if (conf.online_file != NULL) {
+		if (conf.online_file == NULL) {
 			logwrite(LOG_ALERT, "online detection mode is 'file', but online_file is undefined\n");
 			return NULL;
 		}