1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

coverity: 62207: we only need to compute the flag if LWS_WITH_SYS_ASYNC_DNS

This commit is contained in:
Andy Green 2020-08-18 13:33:28 +01:00
parent a6b4bd8bfc
commit a743a2b234

View file

@ -831,7 +831,10 @@ lws_create_vhost(struct lws_context *context,
goto bail1;
}
#endif
#if defined(LWS_WITH_SYS_ASYNC_DNS)
n = !!context->vhost_list;
#endif
while (1) {
if (!(*vh1)) {