changeset 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 1761b3bde646
children c80a5730bcc5
files src/online.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
 		}