summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-12-10 10:33:58 (GMT)
committerXavier Claessens <xclaesse@gmail.com>2010-12-10 10:33:58 (GMT)
commita4ce224a379bee88c53ac06bbe4aa6acc3b72184 (patch)
tree0422971203190c62bdb2baa22780d17692d4ae28
parent1f8844e9f88b2d2733653e3578c0f4bac737931f (diff)
downloadtelepathy-ssh-contact-a4ce224a379bee88c53ac06bbe4aa6acc3b72184.tar.gz
telepathy-ssh-contact-a4ce224a379bee88c53ac06bbe4aa6acc3b72184.tar.xz
Use tp_str_empty()
-rw-r--r--src/client-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client-helpers.c b/src/client-helpers.c
index b6b3c0f..8522d9e 100644
--- a/src/client-helpers.c
+++ b/src/client-helpers.c
@@ -295,7 +295,7 @@ _client_create_exec_args (GSocket *socket,
g_ptr_array_add (args, str);
}
- if (username != NULL && *username != '\0')
+ if (!tp_str_empty (username))
{
g_ptr_array_add (args, g_strdup ("-l"));
g_ptr_array_add (args, g_strdup (username));