]> git.tdb.fi Git - libs/datafile.git/commitdiff
Don't forget to initialize the control statement flag
authorMikko Rasa <tdb@tdb.fi>
Mon, 19 Aug 2013 14:00:11 +0000 (17:00 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 19 Aug 2013 14:00:11 +0000 (17:00 +0300)
source/statement.cpp

index 3b6f7165b0ef1fa50874c255b12cd987c2563b22..b1ff05826e314441fd3e93ced8c5117f295b5824 100644 (file)
@@ -9,12 +9,14 @@ namespace DataFile {
 
 Statement::Statement():
        valid(false),
+       control(false),
        line(0)
 { }
 
 Statement::Statement(const string &kw):
        keyword(kw),
        valid(true),
+       control(!kw.compare(0, 2, "__")),
        line(0)
 { }