diff src/proxy.c @ 6320:ef9065e52582

[gaim-migrate @ 6819] Hiptop is a funny word. Also, this should fix some crashination when using an http proxy with a username but no password on Solaris. Needless to say, it's a bit rare. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 28 Jul 2003 22:53:14 +0000
parents 80e3641ee9eb
children 42fdf16f1dad
line wrap: on
line diff
--- a/src/proxy.c	Mon Jul 28 02:58:15 2003 +0000
+++ b/src/proxy.c	Mon Jul 28 22:53:14 2003 +0000
@@ -937,8 +937,8 @@
 		char *t1, *t2;
 		t1 = g_strdup_printf("%s:%s",
 							 gaim_proxy_info_get_username(phb->gpi),
-							 gaim_proxy_info_get_password(phb->gpi));
-
+							 gaim_proxy_info_get_password(phb->gpi) ? 
+							 gaim_proxy_info_get_password(phb->gpi) : "");
 		t2 = tobase64(t1, strlen(t1));
 		g_free(t1);
 		g_return_if_fail(request_len < sizeof(request));