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)