From 61f1f8b457e9391d6e099ab20ceebe5adfe8b7b6 Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 7 Jan 2026 16:37:59 +1000 Subject: [PATCH] Tighten up ma_context_get_backend_info(). --- miniaudio.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 7f5cbf1d..24ba8147 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -44790,7 +44790,13 @@ MA_API void* ma_context_get_backend_state(ma_context* pContext) MA_API void ma_context_get_backend_info(ma_context* pContext, ma_device_backend_info* pBackendInfo) { - if (pContext == NULL || pBackendInfo == NULL) { + if (pBackendInfo == NULL) { + return; + } + + MA_ZERO_OBJECT(pBackendInfo); + + if (pContext == NULL) { return; }