Changeset f618a4a for lib


Ignore:
Timestamp:
2007-10-12T12:11:57Z (17 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
764b163d
Parents:
c78c032
Message:

Fix GCC warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/proxy.c

    rc78c032 rf618a4a  
    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.