X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Furl.c;h=8475a85f378498835509117b51c5b35362f208eb;hb=c673da72822d7704572716de80402829921efdc3;hp=cb577cb1625f7ad07e4adcf19fd32a406034bd08;hpb=d63e6f9f94894e6dca41a6a6a510fcc14eae58ac;p=libucw.git diff --git a/lib/url.c b/lib/url.c index cb577cb1..8475a85f 100644 --- a/lib/url.c +++ b/lib/url.c @@ -368,8 +368,7 @@ url_normalize(struct url *u, struct url *b) int err; /* Basic checks */ - if (url_proto_path_flags[u->protoid] && !u->host || - u->host && !*u->host || + if (url_proto_path_flags[u->protoid] && (!u->host || !*u->host) || !u->host && u->user || !u->user && u->pass || !u->rest)