fixed bug when -O0 the program crashes with code 01.

add `nasal_err():error(0){}` in `nasal_err.h:47` as the constructor.
This commit is contained in:
ValKmjolnir 2022-02-14 17:40:19 +08:00
parent 0291908675
commit 51afe3dacd
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class nasal_err:public file_line
private:
uint32_t error;
public:
nasal_err():error(0){}
void err(const char* stage,const std::string& info)
{
++error;