diff -r cea3a32612b0 -r 02346b6472b3 libpurple/protocols/silc/util.c --- a/libpurple/protocols/silc/util.c Sat Jan 09 12:51:06 2016 -0500 +++ b/libpurple/protocols/silc/util.c Thu Jan 14 00:09:55 2016 -0500 @@ -500,7 +500,7 @@ if (mood & SILC_ATTRIBUTE_MOOD_ANXIOUS) g_string_append_printf(s, "[%s] ", _("Anxious")); } - if (strlen(s->str)) { + if (*s->str != '\0') { *moodstr = g_string_free(s, FALSE); g_strchomp(*moodstr); } else @@ -529,7 +529,7 @@ if (contact & SILC_ATTRIBUTE_CONTACT_VIDEO) g_string_append_printf(s, "[%s] ", _("Video Conferencing")); } - if (strlen(s->str)) { + if (*s->str != '\0') { *contactstr = g_string_free(s, FALSE); g_strchomp(*contactstr); } else @@ -558,7 +558,7 @@ device.model ? device.model : "", device.language ? device.language : ""); } - if (strlen(s->str)) + if (*s->str != '\0') *devicestr = g_string_free(s, FALSE); else g_string_free(s, TRUE);