diff pidgin/gtkimhtml.c @ 32364:323876c34a96

Don't use strlen() when all you're trying to do is check if the string is empty
author Mark Doliner <mark@kingant.net>
date Mon, 22 Aug 2011 02:07:41 +0000
parents a8f62638417e
children ac6353ffa129 4676bbc64e36
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Mon Aug 22 01:53:37 2011 +0000
+++ b/pidgin/gtkimhtml.c	Mon Aug 22 02:07:41 2011 +0000
@@ -5367,9 +5367,9 @@
 			tag = sl->data;
 			/** don't worry about non-printing tags ending */
 			if (tag_ends_here(tag, &iter, &next_iter) &&
-					strlen(tag_to_html_end(tag)) > 0 &&
-					strlen(tag_to_html_start(tag)) > 0) {
-
+					*tag_to_html_end(tag) &&
+					*tag_to_html_start(tag))
+			{
 				PidginTextTagData *tmp;
 				GQueue *r = g_queue_new();