Mercurial > pidgin
diff libpurple/protocols/gg/buddylist.c @ 31906:e8d4755ef84b
Don't use strlen() when you're just checking whether a string is
empty
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 22 Aug 2011 02:11:36 +0000 |
parents | a8cc50c2279f |
children | aee8dcd35262 |
line wrap: on
line diff
--- a/libpurple/protocols/gg/buddylist.c Mon Aug 22 02:07:41 2011 +0000 +++ b/libpurple/protocols/gg/buddylist.c Mon Aug 22 02:11:36 2011 +0000 @@ -90,7 +90,7 @@ gchar **data_tbl; gchar *name, *show, *g; - if (strlen(users_tbl[i]) == 0) + if (!*users_tbl[i]) continue; data_tbl = g_strsplit(users_tbl[i], ";", 8);