From 2519ac9cedc8a64bae95f83e68a2538a54044533 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 19 Mar 2018 19:22:41 +0800 Subject: [PATCH] coverity 188316: supposed deadcode --- lib/client/client-parser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/client/client-parser.c b/lib/client/client-parser.c index 485b31b5..9174a528 100644 --- a/lib/client/client-parser.c +++ b/lib/client/client-parser.c @@ -508,6 +508,7 @@ ping_drop: goto already_done; drain_extension: +#if !defined(LWS_WITHOUT_EXTENSIONS) lwsl_ext("%s: passing %d to ext\n", __func__, eff_buf.token_len); n = lws_ext_cb_active(wsi, LWS_EXT_CB_PAYLOAD_RX, &eff_buf, 0); @@ -516,7 +517,9 @@ drain_extension: wsi->socket_is_permanently_unusable = 1; return -1; } - +#else + n = 0; +#endif lwsl_ext("post inflate eff_buf len %d\n", eff_buf.token_len); if (rx_draining_ext && !eff_buf.token_len) {