[Libwebsockets] [libwebsockets] #52: broken compilation with "without_extensions=1"

Trac trac at libwebsockets.org
Tue Dec 10 03:52:04 CET 2013

#52: broken compilation with "without_extensions=1"
 Reporter:  mroszko                 |      Owner:
     Type:  defect                  |     Status:  new
 Priority:  major                   |  Milestone:
Component:  libwebsocket test apps  |    Version:
 Keywords:                          |
 output.c:193:3: error: 'real_len' undeclared (first use in this function)

 It appears it's trying to compile with the real_len variable here:

          * already handling a truncated send?
         if (wsi->truncated_send_malloc) {
                 lwsl_info("***** %x partial send moved on by %d (vs
 %d)\n", wsi, n, real_len);


 real_len is only declared inside this #ifndef above it

         int m;
         size_t real_len = len;

 thus it will always fault if without_extensions is set.

Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/52>
libwebsockets <http://libwebsockets.org>
libwebsockets C library

More information about the Libwebsockets mailing list