Skip to content

Commit

Permalink
Compiler2: hotfix assigning a null pointer to std::string
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Dec 18, 2024
1 parent 78c2be0 commit c6221ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/script2/cs_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ ccScript *ccCompileText2(std::string const &script, std::string const &scriptNam
compiled_script->sctoc = ccCompileDataTOC(symt, seclist, compiled_script->rtti.get());
}

ccCurScriptName = nullptr;
ccCurScriptName = {};
cc_clear_error();
compiled_script->FreeExtra();
return compiled_script;
Expand Down

0 comments on commit c6221ef

Please sign in to comment.