From 27ec68fbd80ddaa9793da6f4af103e8c4890f451 Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Sun, 10 May 2026 19:49:14 -0400 Subject: [PATCH] options/m_property: add log null check to m_property_multiply Similar to m_property_switch, cannot be null for write paths. --- options/m_property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/options/m_property.c b/options/m_property.c index fed1d3a9a9..4989e3b065 100644 --- a/options/m_property.c +++ b/options/m_property.c @@ -66,6 +66,8 @@ static int m_property_multiply(struct mp_log *log, struct m_option opt = {0}; int r; + if (!log) + return M_PROPERTY_ERROR; r = m_property_do(log, prop_list, property, M_PROPERTY_GET_CONSTRICTED_TYPE, &opt, ctx); if (r != M_PROPERTY_OK)