comparison 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
comparison
equal deleted inserted replaced
23298:78c832e03324 23299:b2f91d7d3427
96 PurpleAccount *account; 96 PurpleAccount *account;
97 PurpleConnection *gc; 97 PurpleConnection *gc;
98 char *displayed = NULL, *sent = NULL; 98 char *displayed = NULL, *sent = NULL;
99 int err = 0; 99 int err = 0;
100 100
101 if (strlen(message) == 0) 101 if (*message == '\0')
102 return; 102 return;
103 103
104 account = purple_conversation_get_account(conv); 104 account = purple_conversation_get_account(conv);
105 gc = purple_conversation_get_gc(conv); 105 gc = purple_conversation_get_gc(conv);
106 106