mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
coverity 155650 medium possible write to null pointer
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
e96b2c680a
commit
0fd63763f6
1 changed files with 2 additions and 1 deletions
|
@ -316,7 +316,8 @@ lws_get_addresses(struct lws_context *context, void *ads, char *name,
|
|||
struct addrinfo ai, *res;
|
||||
struct sockaddr_in addr4;
|
||||
|
||||
rip[0] = '\0';
|
||||
if (rip)
|
||||
rip[0] = '\0';
|
||||
name[0] = '\0';
|
||||
addr4.sin_family = AF_UNSPEC;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue