Mercurial > pidgin.yaz
diff libpurple/conversation.c @ 23299:b2f91d7d3427
Don't use strlen() when we can just check the first character
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 06 Jun 2008 22:35:27 +0000 |
parents | ff8ec3d58367 |
children | 1c6918e48104 81ebe4fac9ce |
line wrap: on
line diff
--- a/libpurple/conversation.c Fri Jun 06 06:41:07 2008 +0000 +++ b/libpurple/conversation.c Fri Jun 06 22:35:27 2008 +0000 @@ -98,7 +98,7 @@ char *displayed = NULL, *sent = NULL; int err = 0; - if (strlen(message) == 0) + if (*message == '\0') return; account = purple_conversation_get_account(conv);