# HG changeset patch # User Richard Laager # Date 1179345620 0 # Node ID 9d5121f2ab5dbbc190d4ee4f629e5e4a04953059 # Parent 601594a641906fa0ddffd2e7e2f88cfd72d9215e Minor formatting tweaks for the dbus_uniq code. diff -r 601594a64190 -r 9d5121f2ab5d COPYRIGHT --- a/COPYRIGHT Wed May 16 19:35:17 2007 +0000 +++ b/COPYRIGHT Wed May 16 20:00:20 2007 +0000 @@ -303,7 +303,7 @@ David Schmitt Mark Schneider Evan Schoenberg -Gabriel Schulof +Gabriel Schulhof Federico Schwindt Torrey Searle Peter Seebach diff -r 601594a64190 -r 9d5121f2ab5d libpurple/core.c --- a/libpurple/core.c Wed May 16 19:35:17 2007 +0000 +++ b/libpurple/core.c Wed May 16 20:00:20 2007 +0000 @@ -302,8 +302,7 @@ if (reply) { dbus_error_init(&dbus_error); dbus_message_get_args(reply, &dbus_error, DBUS_TYPE_STRING, &remote_user_dir, DBUS_TYPE_INVALID); - if (remote_user_dir) - remote_user_dir = g_strdup(remote_user_dir); + remote_user_dir = g_strdup(remote_user_dir); dbus_error_free(&dbus_error); dbus_message_unref(reply); } @@ -321,7 +320,7 @@ return; if ((msg = dbus_message_new_method_call(DBUS_SERVICE_PURPLE, DBUS_PATH_PURPLE, DBUS_INTERFACE_PURPLE, "PurpleBlistShow")) == NULL) - return ; + return; dbus_error_init(&dbus_error); if ((reply = dbus_connection_send_with_reply_and_block(dbus_connection, msg, 5000, &dbus_error)) != NULL) { @@ -333,7 +332,8 @@ gboolean purple_core_ensure_single_instance() { -gboolean is_single_instance = TRUE; + gboolean is_single_instance = TRUE; + #ifdef HAVE_DBUS /* in the future, other mechanisms might have already set this to FALSE */ if (is_single_instance) { @@ -357,6 +357,7 @@ } } #endif /* HAVE_DBUS */ + return is_single_instance; }