Diff between 467a4930ad42f403dfd16bfd9693ade245909daf and a64d3709497e8476356406f17142413a3baf7b61

Changed Files

File Additions Deletions Status
client/main.c +2 -2 modified

Full Patch

diff --git a/client/main.c b/client/main.c
index 68dabda..8bd0bac 100644
--- a/client/main.c
+++ b/client/main.c
@@ -1792,11 +1792,11 @@ static void remove_device(GDBusProxy *proxy)
 {
 	char *path;
 
-	path = g_strdup(g_dbus_proxy_get_path(proxy));
-
 	if (!default_ctrl)
 		return;
 
+	path = g_strdup(g_dbus_proxy_get_path(proxy));
+
 	if (g_dbus_proxy_method_call(default_ctrl->proxy, "RemoveDevice",
 						remove_device_setup,
 						remove_device_reply,