changeset 17682:425bc4362d8c

Correct some useless code to do what it was supposed to do. This was noticed by o_sukhodolsky. References #1344
author Richard Laager <rlaager@wiktel.com>
date Mon, 04 Jun 2007 00:54:16 +0000
parents 6c592bdeccc2
children 8622d1233e0a
files libpurple/plugins/log_reader.c
diffstat 1 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/log_reader.c	Mon Jun 04 00:38:12 2007 +0000
+++ b/libpurple/plugins/log_reader.c	Mon Jun 04 00:54:16 2007 +0000
@@ -1500,16 +1500,15 @@
 						g_string_append_c(temp, *link);
 						link++;
 					}
-					if (link) {
+					if (*link)
 						link++;
 
-						g_string_append(temp, "\">");
-						while (*link && *link != ' ') {
-							g_string_append_c(temp, *link);
-							link++;
-						}
-						g_string_append(temp, "</a>");
+					g_string_append(temp, "\">");
+					while (*link && *link != ' ') {
+						g_string_append_c(temp, *link);
+						link++;
 					}
+					g_string_append(temp, "</a>");
 
 					g_string_append(temp, link);