changeset 307:e0de950ed497

bug fix: inverted condition damn, we need regression testing!
author meillo@marmaro.de
date Sun, 24 Apr 2011 15:11:37 +0200 (2011-04-24)
parents 382e4260435d
children 86d8a3cf517d
files src/conf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/conf.c	Sun Apr 24 15:10:48 2011 +0200
+++ b/src/conf.c	Sun Apr 24 15:11:37 2011 +0200
@@ -468,7 +468,7 @@
 			else {
 				char buf[256];
 				FILE *fptr = fopen(rval, "rt");
-				if (fptr) {
+				if (!fptr) {
 					logwrite(LOG_ALERT, "could not open %s: %s\n", rval, strerror(errno));
 					return FALSE;
 				}