changeset 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 78c832e03324
children 5cdd93dac7a2
files libpurple/conversation.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);