From 693e6479099cbe740423db2210b508802b2c134e Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Thu, 4 Jan 2024 23:44:02 -0500 Subject: [PATCH] Fix input autodetect notices sometimes not appearing --- tasks/task_autodetect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;