--- mqtt/src/utils.c 2012/04/24 08:06:09 1.2.2.3 +++ mqtt/src/utils.c 2012/04/25 16:55:33 1.2.2.4 @@ -7,9 +7,11 @@ srv_Socket(cfg_root_t * __restrict cfg) int s = -1, n = 1; ait_val_t v; u_short port; - io_sockaddr_t sa; + io_sockaddr_t sa = {{ 0 }}; ioTRACE(2); + + assert(cfg); cfg_loadAttribute(cfg, "mqttd", "port", &v, MQTT_PORT); port = strtol(AIT_GET_STR(&v), NULL, 0);