changeset 18173:dcbf032a027c

fixing missing braces
author Michael Shkutkov <mshkutkov@soc.pidgin.im>
date Thu, 21 Jun 2007 21:22:13 +0000
parents 3aa11b0169c9
children bb228f608b61
files libpurple/plugins/log_reader.c
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/log_reader.c	Thu Jun 21 08:32:22 2007 +0000
+++ b/libpurple/plugins/log_reader.c	Thu Jun 21 21:22:13 2007 +0000
@@ -1829,15 +1829,13 @@
 			"File %s is found\n", filename);
 			
 		/* We should convert file contents from Cp1251 to UTF-8 codeset */
-		if (!(utf8_string = g_convert(contents, length, "UTF-8", "Cp1251", NULL, NULL, &error)))
+		if (!(utf8_string = g_convert(contents, length, "UTF-8", "Cp1251", NULL, NULL, &error))) {
 			if (error) {
 				purple_debug(PURPLE_DEBUG_ERROR, "QIP logger list",
 					"Couldn't convert file %s to UTF-8\n", filename);
 				g_error_free(error);
 			}
-			
-		if (utf8_string) {
-		
+		} else {
 			purple_debug(PURPLE_DEBUG_INFO, "QIP logger lise",
 				"File %s converted successfully\n", filename);
 			
@@ -1948,14 +1946,13 @@
 		gchar * utf8_string;
 		
 		/* We should convert file contents from Cp1251 to UTF-8 codeset */
-		if (!(utf8_string = g_convert (contents, length, "UTF-8", "Cp1251", NULL, NULL, &error)))
+		if (!(utf8_string = g_convert (contents, length, "UTF-8", "Cp1251", NULL, NULL, &error))) {
 			if (error) {
 				purple_debug(PURPLE_DEBUG_ERROR, "QIP logger read",
 					"Couldn't convert file %s to UTF-8\n", data->path);
 				g_error_free(error);
 			}
-
-		if (utf8_string) {
+		} else {
 			char *escaped;
 
 			purple_debug(PURPLE_DEBUG_INFO, "QIP logger read",