3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 12:28:44 +00:00

guarding against null symbols creeping in. Issue #571

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-04-20 14:07:45 -07:00
parent 417c80edbc
commit d0175b96b8

View file

@ -131,7 +131,7 @@ namespace api {
}
char * context::mk_external_string(char const * str) {
m_string_buffer = str;
m_string_buffer = str?str:"";
return const_cast<char *>(m_string_buffer.c_str());
}