projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7849c5a
)
coverity 182068: 155650: unnecessary check against illegal NULL
author
Andy Green
<andy@warmcat.com>
Fri, 28 Jul 2017 06:19:24 +0000
(14:19 +0800)
committer
Andy Green
<andy@warmcat.com>
Fri, 28 Jul 2017 06:19:24 +0000
(14:19 +0800)
lib/libwebsockets.c
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.c
b/lib/libwebsockets.c
index
65b88ee
..
2ca8316
100755
(executable)
--- a/
lib/libwebsockets.c
+++ b/
lib/libwebsockets.c
@@
-820,8
+820,7
@@
lws_get_addresses(struct lws_vhost *vh, void *ads, char *name,
struct addrinfo ai, *res;
struct sockaddr_in addr4;
- if (rip)
- rip[0] = '\0';
+ rip[0] = '\0';
name[0] = '\0';
addr4.sin_family = AF_UNSPEC;
@@
-856,8
+855,6
@@
lws_get_addresses(struct lws_vhost *vh, void *ads, char *name,
name, name_len, NULL, 0, 0))
return -1;
#endif
- if (!rip)
- return 0;
if (getaddrinfo(name, NULL, &ai, &result))
return -1;