webclient: Check the return value of netlib_parseurl correctly

This commit is contained in:
YAMAMOTO Takashi 2020-05-28 17:19:16 +09:00 committed by Xiang Xiao
parent 415010b7fd
commit a455f13ec1

View File

@ -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;
} }