Ignore:
Timestamp:
Apr 5, 2011, 10:21:18 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) fix ABR error when parsing a URL with no path and no trailing slash after the host. Error reported by livings124

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils-test.c

    r12248 r12324  
    386386    const char * url;
    387387
     388    url = "http://1";
     389    check( !tr_urlParse( url, -1, &scheme, &host, &port, &path ) );
     390    check( !strcmp( scheme, "http" ) )
     391    check( !strcmp( host, "1" ) )
     392    check( !strcmp( path, "/" ) )
     393    check( port == 80 )
     394    tr_free( scheme );
     395    tr_free( path );
     396    tr_free( host );
     397
    388398    url = "http://www.some-tracker.org/some/path";
    389399    check( !tr_urlParse( url, -1, &scheme, &host, &port, &path ) )
Note: See TracChangeset for help on using the changeset viewer.