atk_bridge_adaptor_init: return -1 if NO_AT_BRIDGE is set
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 29 Aug 2016 20:03:12 +0000 (15:03 -0500)
committerMike Gorse <mgorse@suse.com>
Mon, 29 Aug 2016 20:03:12 +0000 (15:03 -0500)
This will give the caller a clue that the bridge hasn't
initialized.

https://bugzilla.gnome.org/show_bug.cgi?id=770574

atk-adaptor/bridge.c

index e76e833bd751bd155066c6d9b36d8c18ad102559..7de84d4669d59b1d4dcb2a088944b65743dfe65f 100644 (file)
@@ -987,8 +987,10 @@ atk_bridge_adaptor_init (gint * argc, gchar ** argv[])
   if (inited && !load_bridge)
     g_warning ("ATK Bridge is disabled but a11y has already been enabled.");
 
-  if (inited || !load_bridge)
+  if (inited)
     return 0;
+  if (!load_bridge)
+    return -1;
 
   inited = TRUE;