# HG changeset patch # User Luke Schierer # Date 1041613591 0 # Node ID 02f4eacf4c58f7f68a22f6a6f917382d7dc3f345 # Parent c464dd315be41d7c72e9dad65a360cde8a5e65bf [gaim-migrate @ 4420] *sigh* i hate the stupid restriction on where variables can be declared in c. now browser.c compiles and the fix i committed earilier is in place. committer: Tailor Script diff -r c464dd315be4 -r 02f4eacf4c58 src/browser.c --- a/src/browser.c Fri Jan 03 16:59:53 2003 +0000 +++ b/src/browser.c Fri Jan 03 17:06:31 2003 +0000 @@ -570,6 +570,7 @@ void open_url(GtkWidget *w, char *url) { + gchar *space_free_url; if (web_browser == BROWSER_NETSCAPE) { char *command; @@ -625,7 +626,8 @@ args[1] = url; args[2] = NULL; } else if (web_browser == BROWSER_MANUAL) { - gchar *space_free_url; + if(strcmp(web_command,"") == 0) + _exit(0); space_free_url = g_strdelimit(url, " ", '+'); g_snprintf(command, sizeof(command), web_command, space_free_url); g_free(space_free_url); diff -r c464dd315be4 -r 02f4eacf4c58 src/gaimrc.c --- a/src/gaimrc.c Fri Jan 03 16:59:53 2003 +0000 +++ b/src/gaimrc.c Fri Jan 03 17:06:31 2003 +0000 @@ -69,7 +69,7 @@ int web_browser; struct save_pos blist_pos; struct window_size conv_size, buddy_chat_size; -char web_command[2048]; +char web_command[2048] = ""; char *sound_file[NUM_SOUNDS]; #ifndef _WIN32 char sound_cmd[2048];