Fix input autodetect notices sometimes not appearing (#16077)

This commit is contained in:
Eric Warmenhoven 2024-01-05 02:12:33 -05:00 committed by GitHub
parent a3e9525988
commit e428541f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;