changeset 7545:c81c18d63a09

[gaim-migrate @ 8159] apparently mingwgcc can't handle my coolness committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 17 Nov 2003 22:50:47 +0000
parents bf6bb674cbb7
children d60db7634542
files plugins/relnot.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/relnot.c	Mon Nov 17 22:40:20 2003 +0000
+++ b/plugins/relnot.c	Mon Nov 17 22:50:47 2003 +0000
@@ -86,15 +86,17 @@
 {
 	int last_check = gaim_prefs_get_int("/plugins/gtk/relnot/last_check");
 	if(!last_check || time(NULL) - last_check > MIN_CHECK_INTERVAL) {
-		char *url = g_strdup_printf("http://gaim.sourceforge.net/version.php?version=%s&build=%s", gaim_core_get_version(),
+		const char *build;
+		char *url;
 #ifdef _WIN32
-				"gaim-win32"
+		build = "gaim-win32";
 #else
-				"gaim"
+		build = "gaim";
 #endif
-				);
+		url = g_strdup_printf("http://gaim.sourceforge.net/version.php?version=%s&build=%s", gaim_core_get_version(), build);
 		gaim_url_fetch(url, TRUE, NULL, FALSE, version_fetch_cb, NULL);
 		gaim_prefs_set_int("/plugins/gtk/relnot/last_check", time(NULL));
+		g_free(url);
 	}
 }