Changeset 2231302 for lib/proxy.c


Ignore:
Timestamp:
2007-11-05T22:59:49Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
be68d99
Parents:
5e2615a (diff), 7435ccf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging from Jelmer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/proxy.c

    r5e2615a r2231302  
    211211        }
    212212
    213         if (proxyuser && *proxyuser) {
     213        if (strlen(proxyuser) > 0) {
    214214                char *t1, *t2;
    215215                t1 = g_strdup_printf("%s:%s", proxyuser, proxypass);
     
    539539        phb->data = data;
    540540       
    541         if ((proxytype == PROXY_NONE) || !proxyhost || !proxyhost[0] || !proxyport || (proxyport == -1))
     541        if ((proxytype == PROXY_NONE) || strlen(proxyhost) > 0 || !proxyport || (proxyport == -1))
    542542                return proxy_connect_none(host, port, phb);
    543543        else if (proxytype == PROXY_HTTP)
Note: See TracChangeset for help on using the changeset viewer.