aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark/bench_results.c
diff options
context:
space:
mode:
authorLucas de Castro Borges <lucas@gnuabordo.com.br>2024-04-22 18:23:04 -0300
committerLucas de Castro Borges <lucas@gnuabordo.com.br>2024-04-22 18:23:04 -0300
commit76e1a7480ed7a77a442dee8b63574c8516cacdd2 (patch)
treef4b7997875f37b1ae97ea5f4773aebfa9a96965a /modules/benchmark/bench_results.c
parent4212b15b19d6c9db8d2f9fed92e5b9675b2cfe9c (diff)
parentf70f209239d51a5893f8f9f080b19b6ee94ff4af (diff)
Update upstream source from tag 'upstream/2.0.9pre'
Update to upstream version '2.0.9pre' with Debian dir 817dddd03e0e9bc80d4f80e98431c08f4e402b1e
Diffstat (limited to 'modules/benchmark/bench_results.c')
-rw-r--r--modules/benchmark/bench_results.c6
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");