diff --git a/netutils/netlib/netlib_parseurl.c b/netutils/netlib/netlib_parseurl.c index 9e46a32d0..dd10930d5 100644 --- a/netutils/netlib/netlib_parseurl.c +++ b/netutils/netlib/netlib_parseurl.c @@ -113,21 +113,21 @@ int netlib_parseurl(FAR const char *str, FAR struct url_s *url) if (*src != ':') { - ret = -EINVAL; + return -EINVAL; } src++; if (*src != '/') { - ret = -EINVAL; + return -EINVAL; } src++; if (*src != '/') { - ret = -EINVAL; + return -EINVAL; } src++;