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

coverity: 10417: move goto inside preprocessor conditional that needs it

Otherwise coverity sees it with !defined(LWS_ROLE_WS) sitting there doing nothing
This commit is contained in:
Andy Green 2020-08-19 06:46:19 +01:00
parent 7ff64b3c42
commit a8315807e7

View file

@ -1021,12 +1021,13 @@ rops_client_bind_h1(struct lws *wsi, const struct lws_client_connect_info *i)
#if defined(LWS_ROLE_WS)
if (lws_create_client_ws_object(i, wsi))
goto fail_wsi;
goto bind_h1;
#else
lwsl_err("%s: ws role not configured\n", __func__);
goto fail_wsi;
#endif
goto bind_h1;
}
/* if a recognized http method, bind to it */