Rewrite test for cJSON_ParseWithOpts() to expect non-null error

pointer in error case and change code to match new expectations.
This commit is contained in:
rmallins
2017-09-08 01:22:10 +01:00
parent 1b2236a9a6
commit 629c354390
3 changed files with 5 additions and 7 deletions
+2 -4
View File
@@ -1006,10 +1006,8 @@ fail:
{
*return_parse_end = (const char*)local_error.json + local_error.position;
}
else
{
global_error = local_error;
}
global_error = local_error;
}
return NULL;