Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f66cbab

Browse files
fix error in null checkings (DaveGamble#810)
fixes DaveGamble#802 and DaveGamble#803
1 parent 60ff122 commit f66cbab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎cJSON.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2280,7 +2280,7 @@ CJSON_PUBLIC(cJSON_bool) cJSON_InsertItemInArray(cJSON *array, int which, cJSON
22802280
return add_item_to_array(array, newitem);
22812281
}
22822282

2283-
if (after_inserted != array->child && newitem->prev == NULL) {
2283+
if (after_inserted != array->child && after_inserted->prev == NULL) {
22842284
/* return false if after_inserted is a corrupted array item */
22852285
return false;
22862286
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /