src/protocols/sametime/sametime.c

changeset 12954
a0f02cc2e803
parent 12953
cb41397f42d4
child 12970
c2f3b4dcf711
--- a/src/protocols/sametime/sametime.c	Thu Jan 19 19:37:37 2006 +0000
+++ b/src/protocols/sametime/sametime.c	Thu Jan 19 20:33:19 2006 +0000
@@ -3180,8 +3180,8 @@
 
   GString *str;
   const char *message;
-  char *tmp = NULL;
   const char *status;
+  char *tmp;
 
   gc = b->account->gc;
   pd = gc->proto_data;
@@ -3193,12 +3193,11 @@
 
   if(message != NULL && gaim_utf8_strcasecmp(status, message)) {
     tmp = g_markup_escape_text(message, -1);
-  }
-
-  g_string_append_printf(str, _("\n<b>Status:</b> %s"), status);
-  if(tmp != NULL) {
-    g_string_append_printf(str, _("\n<b>Message:</b> %s"), tmp);
+    g_string_append_printf(str, _("\n<b>%s:</b> %s"), status, tmp);
     g_free(tmp);
+
+  } else {
+    g_string_append_printf(str, _("\n<b>Status:</b> %s"), status);
   }
 
   if(full) {

mercurial