my compiler version didn't find it, but there is an uninitialized usage of
authorAndy Green <andy@warmcat.com>
Sun, 26 Jun 2011 09:27:28 +0000 (10:27 +0100)
committerAndy Green <andy.green@linaro.org>
Sun, 26 Jun 2011 09:27:28 +0000 (10:27 +0100)
len pointed out by Sonic on the blog

Reported-by: Sven <sven@killig.de>
Signed-off-by: Andy Green <andy@warmcat.com>
lib/libwebsockets.c

index 90e1fbe..80ab9c1 100644 (file)
@@ -1056,7 +1056,7 @@ lws_client_interpret_server_handshake(struct libwebsocket_context *context,
        char ext_name[128];
        struct libwebsocket_extension *ext;
        void *v;
-       int len;
+       int len = 0;
        int n;
        static const char magic_websocket_04_masking_guid[] =
                                         "61AC5F19-FBBA-4540-B96F-6561F1AB40A8";