diff --git a/exec/newslink.js b/exec/newslink.js
index f7c20b3df5420a798811a7597834330ca361b4ee..d17ed75824e085d6364ada0af94426d8722138b9 100644
--- a/exec/newslink.js
+++ b/exec/newslink.js
@@ -177,10 +177,9 @@ if(!cfg_file.open("r")) {
 }
 
 while(!cfg_file.eof) {
-	line = cfg_file.readln();
+	line = truncsp(cfg_file.readln());
 	if(line==null || line[0] == ';' || !line.length || line==undefined)
 		continue;
-	line = truncsp(line);
 	str=line.split(/\s+/);
 	switch(str[0].toLowerCase()) {
 		case "disabled":