1
0
Fork 0
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:
Andy Green 2014-11-30 12:56:21 +08:00
parent adc720dfb5
commit 8ab2b5af8b

View file

@ -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;
}
}
}