diff --git a/src/errorlogger.h b/src/errorlogger.h index f6d58d8a9..89a48c56d 100644 --- a/src/errorlogger.h +++ b/src/errorlogger.h @@ -47,6 +47,10 @@ public: class FileLocation { public: + FileLocation() + { + line = 0; + } std::string file; unsigned int line; }; diff --git a/tools/errmsg.cpp b/tools/errmsg.cpp index f52a10be3..b286740bd 100644 --- a/tools/errmsg.cpp +++ b/tools/errmsg.cpp @@ -173,6 +173,10 @@ int main() fout << " class FileLocation\n"; fout << " {\n"; fout << " public:\n"; + fout << " FileLocation()\n"; + fout << " {\n"; + fout << " line = 0;\n"; + fout << " }\n"; fout << " std::string file;\n"; fout << " unsigned int line;\n"; fout << " };\n";