parser: Construct error pointer from buffer offset
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
#include "common.h"
|
||||
|
||||
static cJSON item[1];
|
||||
const unsigned char *error_pointer = NULL;
|
||||
|
||||
static void assert_is_value(cJSON *value_item, int type)
|
||||
{
|
||||
@@ -48,7 +47,7 @@ static void assert_parse_value(const char *string, int type)
|
||||
buffer.content = (const unsigned char*) string;
|
||||
buffer.length = strlen(string) + sizeof("");
|
||||
buffer.offset = 0;
|
||||
TEST_ASSERT_TRUE(parse_value(item, &buffer, &error_pointer, &global_hooks));
|
||||
TEST_ASSERT_TRUE(parse_value(item, &buffer, &global_hooks));
|
||||
assert_is_value(item, type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user