fix c_str

This commit is contained in:
azw 2021-06-05 22:35:27 +08:00
parent 41cb09fe83
commit f0ee3fb68f

View File

@ -31,7 +31,8 @@ namespace a8
return false; return false;
} }
values_.clear(); values_.clear();
const char *p = stringlist_.String(currline_).c_str(); std::string tmp_str = stringlist_.String(currline_);
const char *p = tmp_str.c_str();
const char *pv = p; const char *pv = p;
// printf("%s\n", p); // printf("%s\n", p);
while(*p && p){ while(*p && p){