Fix deref of NULL pointer.

This commit is contained in:
Patrick Pelissier committed 2019-02-17 09:50:04 +01:00
1 parent 31ca762c62
commit c4a5727c2a
1 file changed
+2 -2
+2 -2
View File
@@ -1120,8 +1120,8 @@ string_it(string_it_t it, const string_t str)
{
STRINGI_CONTRACT(str);
assert(it != NULL);
it->ptr = str->ptr;
it->next_ptr = str->ptr;
it->ptr = string_get_cstr(str);
it->next_ptr = it->ptr;
it->u = 0;
}