Initialize app_bus_addr if p2p is disabled
authorMike Gorse <mgorse@novell.com>
Mon, 3 Jan 2011 18:43:37 +0000 (12:43 -0600)
committerMike Gorse <mgorse@novell.com>
Mon, 3 Jan 2011 18:43:37 +0000 (12:43 -0600)
atk-adaptor/bridge.c

index 6e74fcd..a1cfa90 100644 (file)
@@ -321,6 +321,8 @@ app->app_bus_addr = g_malloc(max_addr_length * sizeof(char));
 #ifndef DISABLE_P2P
 sprintf(app->app_bus_addr, "unix:path=/tmp/at-spi2/socket-%d-%d", getpid(),
 rand());
 #ifndef DISABLE_P2P
 sprintf(app->app_bus_addr, "unix:path=/tmp/at-spi2/socket-%d-%d", getpid(),
 rand());
+#else
+  app->app_bus_addr [0] = '\0';
 #endif
 
   return TRUE;
 #endif
 
   return TRUE;