• Liviu's avatar
    Fix ASAN build · 12339bbf
    Liviu authored
    The ASAN build fails with
    ```
    cookie_auth.c:62:7: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
      if (cookie_header == NULL) goto clean;
          ^~~~~~~~~~~~~~~~~~~~~
    cookie_auth.c:84:10: note: uninitialized use occurs here
      return ret;
             ^~~
    cookie_auth.c:62:3: note: remove the 'if' if its condition is always false
      if (cookie_header == NULL) goto clean;
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cookie_auth.c:65:3: note: variable 'ret' is declared here
      struct session *ret = NULL;
      ^
    cookie_auth.c:62:7: error: variable 'ssid' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
      if (cookie_header == NULL) goto clean;
          ^~~~~~~~~~~~~~~~~~~~~
    cookie_auth.c:81:7: note: uninitialized use occurs here
      if (ssid != ssid_buf) {
          ^~~~
    cookie_auth.c:62:3: note: remove the 'if' if its condition is always false
      if (cookie_header == NULL) goto clean;
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cookie_auth.c:64:3: note: variable 'ssid' is declared here
      char *ssid = ssid_buf;
      ^
    2 errors generated.
    ```
    12339bbf
Name
Last commit
Last update
..
CC3200 Loading commit data...
ESP32_IDF Loading commit data...
ESP8266_RTOS Loading commit data...
MSP432/ccs Loading commit data...
NXP_K64 Loading commit data...
NXP_LPC4088 Loading commit data...
PIC32 Loading commit data...
STM32F4_CC3100 Loading commit data...
TM4C129/ccs Loading commit data...
WinCE/http_server Loading commit data...
api_server Loading commit data...
big_upload Loading commit data...
captive_dns_server Loading commit data...
coap_client Loading commit data...
coap_server Loading commit data...
connected_device_1 Loading commit data...
connected_device_2 Loading commit data...
connected_device_3 Loading commit data...
connected_device_4 Loading commit data...
cookie_auth Loading commit data...
dll Loading commit data...
http_client Loading commit data...
mbed Loading commit data...
mcast_udp_server Loading commit data...
mqtt_broker Loading commit data...
mqtt_client Loading commit data...
mqtt_over_websocket_server Loading commit data...
multithreaded Loading commit data...
nRF51 Loading commit data...
nRF52 Loading commit data...
netcat Loading commit data...
publish_subscribe Loading commit data...
restful_client Loading commit data...
restful_server Loading commit data...
restful_server_s3 Loading commit data...
reverse_proxy Loading commit data...
settings_panel_for_a_device Loading commit data...
simple_crawler Loading commit data...
simplest_web_server Loading commit data...
simplest_web_server_ssl Loading commit data...
sntp_client Loading commit data...
socks_server Loading commit data...
tcp_echo_server Loading commit data...
timers Loading commit data...
udp_client Loading commit data...
udp_echo_server Loading commit data...
websocket_chat Loading commit data...
websocket_chat_client Loading commit data...
Makefile Loading commit data...
examples.mk Loading commit data...