ws union member must have actual struct at start not pointer
authorAndy Green <andy.green@linaro.org>
Wed, 24 Feb 2016 05:42:12 +0000 (13:42 +0800)
committerAndy Green <andy.green@linaro.org>
Wed, 24 Feb 2016 11:18:51 +0000 (19:18 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/private-libwebsockets.h

index cd4cd80..af62e8f 100644 (file)
@@ -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;