From f70f209239d51a5893f8f9f080b19b6ee94ff4af Mon Sep 17 00:00:00 2001 From: Lucas de Castro Borges Date: Mon, 22 Apr 2024 18:22:59 -0300 Subject: New upstream version 2.0.9pre --- modules/benchmark/bench_results.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/benchmark/bench_results.c') diff --git a/modules/benchmark/bench_results.c b/modules/benchmark/bench_results.c index 18ed0739..e0557fc2 100644 --- a/modules/benchmark/bench_results.c +++ b/modules/benchmark/bench_results.c @@ -354,8 +354,10 @@ static void append_cpu_config(JsonObject *object, static gchar *get_cpu_config(JsonObject *machine) { - JsonObject *cpu_config_map = - json_object_get_object_member(machine, "CpuConfigMap"); + JsonObject *cpu_config_map=NULL; + + if(json_object_has_member(machine, "CpuConfigMap")) + cpu_config_map=json_object_get_object_member(machine, "CpuConfigMap"); if (!cpu_config_map) return json_get_string_dup(machine, "CpuConfig"); -- cgit v1.2.3