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:
parent
7ff64b3c42
commit
a8315807e7
1 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue