From 793e7c07d82f118608882b94b554223d4ca23ada Mon Sep 17 00:00:00 2001 From: mroszko Date: Tue, 10 Dec 2013 21:15:00 +0800 Subject: [PATCH] NO_EXTENSIONS fixes Trac #52 Signed-off-by: Andy Green --- lib/output.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/output.c b/lib/output.c index c1074011..c8e85a56 100644 --- a/lib/output.c +++ b/lib/output.c @@ -98,9 +98,10 @@ int lws_issue_raw(struct libwebsocket *wsi, unsigned char *buf, size_t len) { struct libwebsocket_context *context = wsi->protocol->owning_server; int n; + size_t real_len = len; + #ifndef LWS_NO_EXTENSIONS int m; - size_t real_len = len; if (wsi->truncated_send_malloc && (buf < wsi->truncated_send_malloc || @@ -182,9 +183,7 @@ int lws_issue_raw(struct libwebsocket *wsi, unsigned char *buf, size_t len) } #endif -#ifndef LWS_NO_EXTENSIONS handle_truncated_send: -#endif /* * already handling a truncated send?