webclient: Check the return value of netlib_parseurl correctly
This commit is contained in:
parent
415010b7fd
commit
a455f13ec1
@ -309,7 +309,7 @@ static int parseurl(FAR const char *url, FAR struct wget_s *ws)
|
|||||||
url_s.path = ws->filename;
|
url_s.path = ws->filename;
|
||||||
url_s.pathlen = sizeof(ws->filename);
|
url_s.pathlen = sizeof(ws->filename);
|
||||||
ret = netlib_parseurl(url, &url_s);
|
ret = netlib_parseurl(url, &url_s);
|
||||||
if (ret == -1)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user