[ion/utf8_helper] HasCodePoint

This commit is contained in:
Léa Saviot
2019-09-09 12:13:01 +02:00
parent b4f9cbf4b3
commit d9f650d283
6 changed files with 14 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ void App::Snapshot::setOpt(const char * name, char * value) {
if (strcmp(name, "script") == 0) {
m_scriptStore.deleteAllScripts();
char * separator = const_cast<char *>(UTF8Helper::CodePointSearch(value, ':'));
if (!separator) {
if (*separator == 0) {
return;
}
*separator = 0;