diff --git a/tasks/task_autodetect.c b/tasks/task_autodetect.c index fdb89cff81b8..13385ec0c391 100644 --- a/tasks/task_autodetect.c +++ b/tasks/task_autodetect.c @@ -612,7 +612,7 @@ bool input_autoconfigure_connect( /* Configure handle */ if (!(autoconfig_handle = (autoconfig_handle_t*) - malloc(sizeof(autoconfig_handle_t)))) + calloc(1, sizeof(autoconfig_handle_t)))) goto error; autoconfig_handle->port = port;