diff options
author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 18:22:59 -0300 |
---|---|---|
committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 18:22:59 -0300 |
commit | f70f209239d51a5893f8f9f080b19b6ee94ff4af (patch) | |
tree | e0ba432caaf0b19987dd0c8f162d3d949da809f6 /modules/benchmark/bench_results.c | |
parent | 48726c0c219ffeddb45befe0fb8621e1b2648e78 (diff) |
New upstream version 2.0.9preupstream/2.0.9pre
Diffstat (limited to 'modules/benchmark/bench_results.c')
-rw-r--r-- | modules/benchmark/bench_results.c | 6 |
1 files changed, 4 insertions, 2 deletions
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"); |