aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 191a23833..564504f99 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1875,7 +1875,11 @@ set_remote_user_name (EmpathyCallWindow *self,
const gchar *status = empathy_contact_get_status (contact);
gchar *label;
- label = g_strdup_printf ("%s\n<small>%s</small>", alias, status);
+ if (status != NULL)
+ label = g_strdup_printf ("%s\n<small>%s</small>", alias, status);
+ else
+ label = g_strdup (alias);
+
gtk_label_set_markup (GTK_LABEL (self->priv->remote_user_name_toolbar),
label);
g_free (label);