From 3daefb876ad87bd2e5d2a8334f93a10bb6ef1ef2 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 24 Feb 2016 13:42:12 +0800 Subject: [PATCH] ws union member must have actual struct at start not pointer Signed-off-by: Andy Green --- lib/private-libwebsockets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index cd4cd80ba..af62e8ff8 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -953,7 +953,7 @@ struct _lws_header_related { struct _lws_websocket_related { /* cheapest way to deal with ah overlap with ws union transition */ - struct _lws_header_related *hdr; + struct _lws_header_related hdr; char *rx_ubuf; unsigned int rx_ubuf_alloc; struct lws *rx_draining_ext_list;