coverity 188316: hide supposed dead code from coverity with NO_EXTENSIONS

This commit is contained in:
Andy Green 2018-03-19 08:25:02 +08:00
parent b0b10001fe
commit e157fcfe37

View file

@ -555,7 +555,12 @@ utf8_fail:
if (callback_action == LWS_CALLBACK_CLIENT_RECEIVE_PONG)
lwsl_info("Client doing pong callback\n");
if (n && eff_buf.token_len)
if (
/* coverity says dead code otherwise */
#if !defined(LWS_NO_EXTENSIONS)
n &&
#endif
eff_buf.token_len)
/* extension had more... main loop will come back
* we want callback to be done with this set, if so,
* because lws_is_final() hides it was final until the