|
Lines 155-161
Link Here
|
| 155 |
json_object* m = m_file->m_stack_stream.back(); |
155 |
json_object* m = m_file->m_stack_stream.back(); |
| 156 |
|
156 |
|
| 157 |
json_object* buf = json_object_array_get_idx(m, y); |
157 |
json_object* buf = json_object_array_get_idx(m, y); |
| 158 |
if (is_error(buf)) return false; |
158 |
if (buf == nullptr) return false; |
| 159 |
|
159 |
|
| 160 |
m_file->push_object(buf); |
160 |
m_file->push_object(buf); |
| 161 |
return true; |
161 |
return true; |
|
Lines 203-209
Link Here
|
| 203 |
|
203 |
|
| 204 |
json_object* buf_obj |
204 |
json_object* buf_obj |
| 205 |
= json_object_array_get_idx(m, y); |
205 |
= json_object_array_get_idx(m, y); |
| 206 |
if (is_error(buf_obj)) return false; |
206 |
if (buf_obj == nullptr) return false; |
| 207 |
if (!json_object_is_type(buf_obj, json_type_object)) return false; |
207 |
if (!json_object_is_type(buf_obj, json_type_object)) return false; |
| 208 |
|
208 |
|
| 209 |
json_object* buf; |
209 |
json_object* buf; |