diff src/protocols/yahoo/util.c @ 6631:f80e23e66de0

[gaim-migrate @ 7155] A patch from Bjoern Voigt that allows the languages in the about window to be i10ned. Bjoern, I was having some problems emailing you earlier. I just wanted to say that I've been rather busy and wasn't sure when I would be able to commit this. Thanks for the patch, it looks nice. I hand applied it because I'm a freak, and I think there may have been some other changes to that code since the patch was made. Anyhoo, you might just want to double check everything. Fixed some compile warnings: util.c: In function `_parse_font_tag': util.c:313: warning: suggest explicit braces to avoid ambiguous `else' util.c: In function `yahoo_html_to_codes': util.c:456: warning: unused variable `m' util.c:456: warning: unused variable `n' util.c:456: warning: unused variable `vstart' committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 26 Aug 2003 02:55:29 +0000
parents bdc448cf4cb6
children ee32e030c9be
line wrap: on
line diff
--- a/src/protocols/yahoo/util.c	Tue Aug 26 01:44:22 2003 +0000
+++ b/src/protocols/yahoo/util.c	Tue Aug 26 02:55:29 2003 +0000
@@ -310,7 +310,7 @@
 					break;
 				}
 
-				if (src[n] == '"')
+				if (src[n] == '"') {
 					if (!quote) {
 						quote = 1;
 						vstart = n;
@@ -318,6 +318,7 @@
 					} else {
 						done = 1;
 					}
+				}
 
 				if (!quote && ((src[n] == ' ') || (src[n] == '>')))
 					done = 1;
@@ -453,7 +454,7 @@
 
 char *yahoo_html_to_codes(const char *src)
 {
-	int i, j, m, n, vstart, len;
+	int i, j, len;
 	GString *dest;
 	char *ret, *esc;
 	GQueue *colors, *tags;