diff options
author | Josef Gajdusek <atx@atx.name> | 2015-05-05 23:48:21 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-05-06 21:47:43 +0100 |
commit | 2d56df67cd7f6efac2607e625c72c379fd6c3601 (patch) | |
tree | 2bc17693809a6c8098bd19168ab1f451ffae63c5 /esp8266/modesp.c | |
parent | 57ebe1b27d6ae10584d3b5f767e3cc5aa481c0b0 (diff) | |
download | micropython-2d56df67cd7f6efac2607e625c72c379fd6c3601.tar.gz micropython-2d56df67cd7f6efac2607e625c72c379fd6c3601.zip |
esp8266: Initialize socket->connlist to NULL
This was causing crashes in .onconnect()
Diffstat (limited to 'esp8266/modesp.c')
-rw-r--r-- | esp8266/modesp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/esp8266/modesp.c b/esp8266/modesp.c index f86273d175..ac9da09a56 100644 --- a/esp8266/modesp.c +++ b/esp8266/modesp.c @@ -70,6 +70,7 @@ STATIC mp_obj_t esp_socket_make_new_base() { s->cb_recv = mp_const_none; s->cb_disconnect = mp_const_none; s->fromserver = false; + s->connlist = NULL; return s; } |