Mercurial > pidgin.yaz
changeset 4189:02f4eacf4c58
[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 <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 03 Jan 2003 17:06:31 +0000 |
parents | c464dd315be4 |
children | 8c37a0b0959c |
files | src/browser.c src/gaimrc.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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];