changeset 428:e972c3cbe1e0

Bugfix: Read as long as there *is* content. Before this fix masqmail did not read the contents of files that were given as values to config items.
author markus schnalke <meillo@marmaro.de>
date Wed, 03 Apr 2013 21:45:57 +0200 (2013-04-03)
parents c96a755b5fc4
children 5593964ec779
files src/conf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/conf.c	Mon Jun 04 20:02:31 2012 +0200
+++ b/src/conf.c	Wed Apr 03 21:45:57 2013 +0200
@@ -91,7 +91,7 @@
 				fname, strerror(errno));
 		exit(1);
 	}
-	while (!fgets(buf, sizeof buf, fptr)) {
+	while (fgets(buf, sizeof buf, fptr)) {
 		g_strstrip(buf);
 		if (!*buf || *buf == '#') {
 			continue;