changeset 26190:e9617c54bb04

Fix handling of comments in input.c, current code had useless ifs and in addition could treat more data as comments than correct.
author reimar
date Tue, 11 Mar 2008 14:44:19 +0000
parents 8d1e8229b660
children b7d6346ab198
files input/input.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Tue Mar 11 10:03:25 2008 +0000
+++ b/input/input.c	Tue Mar 11 14:44:19 2008 +0000
@@ -1574,11 +1574,9 @@
       }
       iter++;
       r = strlen(iter);
-      if(r)
-	memmove(buffer,iter,r+1);
+      memmove(buffer,iter,r+1);
       bs = r+1;
-      if(iter[0] != '#')
-	comments = 0;
+      comments = 0;
       continue;
     }