aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-12-28 09:44:30 -0500
committerScott Murray <scott.murray@konsulko.com>2022-12-29 23:11:03 +0000
commit125514bb359c6d06863f7d42ab3326696f22d2ce (patch)
tree137ba234723e554fdf1f6a1e8a950425076a8104
parentaa4ec3157707225e5d588ce0df6f81418445cb5e (diff)
Fix error handlingneedlefish
There is a DEBUG logging statement that attempts to pass NULL to g_variant_print in the error state when connman is not present, tweak things to avoid that. Bug-AGL: SPEC-4623 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I0eeccf332456103dd45ad5e88836cb0484b47e7d
-rw-r--r--src/connman-call.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connman-call.c b/src/connman-call.c
index 0479646..8f87bbb 100644
--- a/src/connman-call.c
+++ b/src/connman-call.c
@@ -244,10 +244,10 @@ GVariant *connman_get_properties(struct connman_state *ns,
else
g_set_error(error, CONNMAN_ERROR, CONNMAN_ERROR_ILLEGAL_ARGUMENT,
"No %s", access_type);
+ } else {
+ DEBUG("properties: %s", g_variant_print(reply, TRUE));
}
- DEBUG("properties: %s", g_variant_print(reply, TRUE));
-
return reply;
}