src/log.c

changeset 14097
0c340861ab79
parent 14068
57ba332d37fc
--- a/src/log.c	Sat Aug 05 05:42:28 2006 +0000
+++ b/src/log.c	Sat Aug 05 08:27:39 2006 +0000
@@ -110,7 +110,7 @@
 				log->tm->tm_zone = tmp;
 			else
 				/* Just shove the UTF-8 bytes in and hope... */
-				log->tm->tm_zone = (char *)g_strdup(log->tm->tm_zone);
+				log->tm->tm_zone = g_strdup(log->tm->tm_zone);
 		}
 #endif
 	}
@@ -853,7 +853,7 @@
 		for (account_iter = gaim_accounts_get_all() ; account_iter != NULL ; account_iter = account_iter->next) {
 			GaimPlugin *prpl;
 			GaimPluginProtocolInfo *prpl_info;
-		
+
 			prpl = gaim_find_prpl(gaim_account_get_protocol_id((GaimAccount *)account_iter->data));
 			if (!prpl)
 				continue;
@@ -1281,8 +1281,7 @@
 	if (data) {
 		if(data->file)
 			fclose(data->file);
-		if(data->path)
-			g_free(data->path);
+		g_free(data->path);
 
 		g_slice_free(GaimLogCommonLoggerData, data);
 	}

mercurial