This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new a455f13 webclient: Check the return value of netlib_parseurl correctly
a455f13 is described below
commit a455f13ec11e06c6523b590228fc0969cf1f9fdc
Author: YAMAMOTO Takashi <[email protected]>
AuthorDate: Thu May 28 17:19:16 2020 +0900
webclient: Check the return value of netlib_parseurl correctly
---
netutils/webclient/webclient.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/netutils/webclient/webclient.c b/netutils/webclient/webclient.c
index ca25998..24430de 100644
--- a/netutils/webclient/webclient.c
+++ b/netutils/webclient/webclient.c
@@ -309,7 +309,7 @@ static int parseurl(FAR const char *url, FAR struct wget_s
*ws)
url_s.path = ws->filename;
url_s.pathlen = sizeof(ws->filename);
ret = netlib_parseurl(url, &url_s);
- if (ret == -1)
+ if (ret < 0)
{
return ret;
}