coverity 83673 deference after NULL check
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
47afcddccf
commit
f14ea7a906
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ upgrade_ws:
|
||||||
lwsl_info("checking %s\n", protocol_name);
|
lwsl_info("checking %s\n", protocol_name);
|
||||||
|
|
||||||
n = 0;
|
n = 0;
|
||||||
while (context->protocols[n].callback) {
|
while (wsi->protocol && context->protocols[n].callback) {
|
||||||
if (!wsi->protocol->name) {
|
if (!wsi->protocol->name) {
|
||||||
n++;
|
n++;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue