Index: /trunk/FACT++/src/rootifysql.cc
===================================================================
--- /trunk/FACT++/src/rootifysql.cc	(revision 19133)
+++ /trunk/FACT++/src/rootifysql.cc	(revision 19134)
@@ -95,6 +95,6 @@
         "$TEST or ${TEST} by '1, 2, 3'. This is useful for the SQL `IN` keyword. "
         "You can also read the values for an enviroment substitution from a file "
-        "(one element per line), e.g. --env.TEST=file.txt. Lines starting with a # "
-        "are skipped.\n"
+        "(one element per line), e.g. --env.TEST=file.txt. Empty lines and lines "
+        "starting with a # are skipped.\n"
         "\n"
         "Comments in the query-file can be placed according to the SQL standard inline "
@@ -442,5 +442,7 @@
 
         for (string line; getline(fin, line); )
-            if (Tools::Trim(line)[0]!='#')
+        {
+            const auto &l = Tools::Trim(line);
+            if (!l.empty() && l[0]!='#')
                 envs[ident].push_back(line);
 
