libpurple/protocols/gg/roster.c

changeset 37523
02346b6472b3
parent 37426
6fd4989b77e4
child 38433
361c801c4536
--- a/libpurple/protocols/gg/roster.c	Sat Jan 09 12:51:06 2016 -0500
+++ b/libpurple/protocols/gg/roster.c	Thu Jan 14 00:09:55 2016 -0500
@@ -497,7 +497,7 @@
 	g_hash_table_insert(content->contact_nodes, GINT_TO_POINTER(uin), node);
 
 	/* check, if alias is set */
-	if (strlen(alias) == 0 ||
+	if (*alias == '\0' ||
 		strcmp(alias, ggp_uin_to_str(uin)) == 0)
 	{
 		g_free(alias);

mercurial