Mercurial > pidgin
diff src/proxy.c @ 12273:9ed903d0c619
[gaim-migrate @ 14575]
sf patch #1368797, from Evan Schoenberg
Fix a printf("%s", NULL); crash
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 30 Nov 2005 06:21:51 +0000 |
parents | b7a51e68d0b8 |
children | 804e335b7b62 |
line wrap: on
line diff
--- a/src/proxy.c Wed Nov 30 06:03:49 2005 +0000 +++ b/src/proxy.c Wed Nov 30 06:21:51 2005 +0000 @@ -1177,8 +1177,8 @@ gaim_debug_info("http proxy", "Connecting to %s:%d via %s:%d using HTTP\n", - phb->host, phb->port, - gaim_proxy_info_get_host(phb->gpi), + (phb->host ? phb->host : "(null)"), phb->port, + (gaim_proxy_info_get_host(phb->gpi) ? gaim_proxy_info_get_host(phb->gpi) : "(null)"), gaim_proxy_info_get_port(phb->gpi)); if ((fd = socket(addr->sa_family, SOCK_STREAM, 0)) < 0) {