X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconnection.c;fp=src%2Fconnection.c;h=fd95ce922a3d109d1b1278759112a7efb201a43c;hb=51726faeea70c12caf2540d62dbdc135c5dfaf18;hp=97e391823ec1272dfb338b272de40e7ed82efe35;hpb=2178842d04c649ed22457dc0829153fd1092521c;p=meshlink-tiny diff --git a/src/connection.c b/src/connection.c index 97e3918..fd95ce9 100644 --- a/src/connection.c +++ b/src/connection.c @@ -30,6 +30,7 @@ void init_connections(meshlink_handle_t *mesh) { assert(!mesh->connection); + mesh->connection = NULL; } void exit_connections(meshlink_handle_t *mesh) {