webclient: Fix a use of uninitialized variable
Detected by clang static analyzer.
This commit is contained in:
parent
e800609e7b
commit
412cf2b955
@ -777,8 +777,8 @@ int webclient_perform(FAR struct webclient_context *ctx)
|
|||||||
/* Could not resolve host (or malformed IP address) */
|
/* Could not resolve host (or malformed IP address) */
|
||||||
|
|
||||||
nwarn("WARNING: Failed to resolve hostname\n");
|
nwarn("WARNING: Failed to resolve hostname\n");
|
||||||
ret = -EHOSTUNREACH;
|
free(ws);
|
||||||
goto errout_with_errno;
|
return -EHOSTUNREACH;
|
||||||
}
|
}
|
||||||
|
|
||||||
server_address = (const struct sockaddr *)&server_in;
|
server_address = (const struct sockaddr *)&server_in;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user