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

coverity: 62584: init m only inside preprocessor conditional that needs it

This commit is contained in:
Andy Green 2020-08-18 09:28:40 +01:00
parent 60e2c65208
commit 048604751c

View file

@ -1680,8 +1680,8 @@ lws_http_action(struct lws *wsi)
wsi->cache_revalidate = hit->cache_revalidate;
wsi->cache_intermediaries = hit->cache_intermediaries;
m = 1;
#if defined(LWS_WITH_FILE_OPS)
m = 1;
if (hit->origin_protocol == LWSMPRO_FILE)
m = lws_http_serve(wsi, s, hit->origin, hit);