mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 04:20:20 +00:00
scoket_server: initialize connection_t struct before using it
This commit is contained in:
parent
47ba4de1ce
commit
8c5fe29456
@ -184,7 +184,7 @@ static connection_t * socket_connection_register_new_connection(int fd){
|
||||
// create connection objec
|
||||
connection_t * conn = malloc( sizeof(connection_t));
|
||||
if (conn == NULL) return NULL;
|
||||
|
||||
memset(conn, 0, sizeof(connection_t));
|
||||
// store reference from linked item to base object
|
||||
conn->linked_connection.connection = conn;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user