pidgin: 9e3f288e: Don't use strlen() when we can just chec...
markdoliner at pidgin.im
markdoliner at pidgin.im
Fri Jun 6 18:40:39 EDT 2008
-----------------------------------------------------------------
Revision: 9e3f288e4aee0fc688d9c680b5db32859fccddb1
Ancestor: c63750bedbfe2b637719fb4225f6c40085e13be9
Author: markdoliner at pidgin.im
Date: 2008-06-06T22:35:27
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9e3f288e4aee0fc688d9c680b5db32859fccddb1
Modified files:
libpurple/conversation.c
ChangeLog:
Don't use strlen() when we can just check the first character
-------------- next part --------------
============================================================
--- libpurple/conversation.c 600c9f8e6e65b8939f7d48d6c16735ab4c7b090c
+++ libpurple/conversation.c 9b8652047568ff85d80a3094fde2ed5e96b12646
@@ -98,7 +98,7 @@ common_send(PurpleConversation *conv, co
char *displayed = NULL, *sent = NULL;
int err = 0;
- if (strlen(message) == 0)
+ if (*message == '\0')
return;
account = purple_conversation_get_account(conv);
More information about the Commits
mailing list