We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d27517f commit c975045Copy full SHA for c975045
parson.c
@@ -1950,13 +1950,13 @@ JSON_Status json_object_dotset_value(JSON_Object *object : itype(_Ptr<JSON_Objec
1950
return JSONFailure;
1951
}
1952
dot_pos = (_Nt_array_ptr<const char>)strchr(name, '.');
1953
+ if (dot_pos == NULL) {
1954
+ return json_object_set_value(object, name, value);
1955
+ }
1956
_Nt_array_ptr<const char> after_dot = NULL;
1957
_Unchecked {
1958
after_dot = _Assume_bounds_cast<_Nt_array_ptr<const char>>(dot_pos + 1, count(0));
1959
- if (dot_pos == NULL) {
- return json_object_set_value(object, name, value);
- }
1960
name_len = dot_pos - name;
1961
_Nt_array_ptr<const char> name_with_len : count(name_len) = NULL;
1962
0 commit comments