Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 12272:3ef381cdc47e | 12273:9ed903d0c619 |
|---|---|
| 1175 { | 1175 { |
| 1176 int fd = -1; | 1176 int fd = -1; |
| 1177 | 1177 |
| 1178 gaim_debug_info("http proxy", | 1178 gaim_debug_info("http proxy", |
| 1179 "Connecting to %s:%d via %s:%d using HTTP\n", | 1179 "Connecting to %s:%d via %s:%d using HTTP\n", |
| 1180 phb->host, phb->port, | 1180 (phb->host ? phb->host : "(null)"), phb->port, |
| 1181 gaim_proxy_info_get_host(phb->gpi), | 1181 (gaim_proxy_info_get_host(phb->gpi) ? gaim_proxy_info_get_host(phb->gpi) : "(null)"), |
| 1182 gaim_proxy_info_get_port(phb->gpi)); | 1182 gaim_proxy_info_get_port(phb->gpi)); |
| 1183 | 1183 |
| 1184 if ((fd = socket(addr->sa_family, SOCK_STREAM, 0)) < 0) { | 1184 if ((fd = socket(addr->sa_family, SOCK_STREAM, 0)) < 0) { |
| 1185 return -1; | 1185 return -1; |
| 1186 } | 1186 } |
