From b61b6bd4e01dec4f40ef9d466f509f882e4f9b8e Mon Sep 17 00:00:00 2001 From: PengZheng Date: Tue, 16 Jan 2024 23:07:23 +0800 Subject: [PATCH] Fix unit test error in TEST_F(JsonSerializerErrorInjectionTestSuite, SerilizationError). --- libs/dfi/src/json_serializer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/dfi/src/json_serializer.c b/libs/dfi/src/json_serializer.c index a3e4a7eac..1cd622df2 100644 --- a/libs/dfi/src/json_serializer.c +++ b/libs/dfi/src/json_serializer.c @@ -173,7 +173,7 @@ static int jsonSerializer_parseAny(const dyn_type* type, void* loc, json_t* val) if (json_is_null(val)) { //nop } else if (json_is_string(val)) { - dynType_text_allocAndInit(type, loc, json_string_value(val)); + status = dynType_text_allocAndInit(type, loc, json_string_value(val)); } else { status = ERROR; celix_err_pushf("Expected json string type got %i", json_typeof(val));