]> git.0d.be Git - empathy.git/commitdiff
empathy_accounts_dialog_show_application: use g_build_filename
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 16 Feb 2010 12:15:27 +0000 (12:15 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 16 Feb 2010 12:15:29 +0000 (12:15 +0000)
That's cleaner to build a path.

src/empathy-accounts-dialog.c

index ca06e14a613eab562d3ab9734bb469d878891747..d438eec048db6f8cce71d87dd2ff70ff72c41a21 100644 (file)
@@ -2238,11 +2238,13 @@ empathy_accounts_dialog_show_application (GdkScreen *screen,
   gchar *argv[4] = { NULL, };
   gint i = 0;
   gchar *account_option = NULL;
+  gchar *path;
 
   g_return_if_fail (GDK_IS_SCREEN (screen));
   g_return_if_fail (!selected_account || TP_IS_ACCOUNT (selected_account));
 
-  argv[i++] = BIN_DIR "/empathy-accounts";
+  path = g_build_filename (BIN_DIR, "empathy-accounts", NULL);
+  argv[i++] = path;
 
   if (selected_account)
     {
@@ -2276,4 +2278,5 @@ empathy_accounts_dialog_show_application (GdkScreen *screen,
     g_child_watch_add ((GPid) command_pid, application_exit_cb, NULL);
 
   g_free (account_option);
+  g_free (path);
 }