From: Mikko Rasa Date: Mon, 19 Aug 2013 14:00:11 +0000 (+0300) Subject: Don't forget to initialize the control statement flag X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=bb46b4a63a5bfcf6a2c0930f0e03046f385725f9;p=libs%2Fdatafile.git Don't forget to initialize the control statement flag --- diff --git a/source/statement.cpp b/source/statement.cpp index 3b6f716..b1ff058 100644 --- a/source/statement.cpp +++ b/source/statement.cpp @@ -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) { }