mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
coverity 83664 consistently check NULL
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
adc720dfb5
commit
8ab2b5af8b
1 changed files with 2 additions and 1 deletions
|
@ -383,7 +383,8 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
|
|||
/* it was the guy we came to service! */
|
||||
timed_out = 1;
|
||||
/* mark as handled */
|
||||
pollfd->revents = 0;
|
||||
if (pollfd)
|
||||
pollfd->revents = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue