Commit c331688
Fix out-of-memory case in cJSON
If the initial calloc failed then NULL was being returned but the
out_of_memory flag was not being set, so callers did not understand the
returned value correctly. Set the flag.1 parent ce2d68b commit c331688
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
| 917 | + | |
917 | 918 | | |
918 | 919 | | |
919 | 920 | | |
| |||
0 commit comments