summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
Diffstat (limited to 'options')
-rw-r--r--options/m_property.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/options/m_property.c b/options/m_property.c
index 1dad9bd290..4efe68f83d 100644
--- a/options/m_property.c
+++ b/options/m_property.c
@@ -158,8 +158,7 @@ int m_property_do(struct mp_log *log, const m_option_t *prop_list,
case M_PROPERTY_SET_STRING: {
if (!log)
return M_PROPERTY_ERROR;
- // (reject 0 return value: success, but empty string with flag)
- if (m_option_parse(log, &opt, bstr0(name), bstr0(arg), &val) <= 0)
+ if (m_option_parse(log, &opt, bstr0(name), bstr0(arg), &val) < 0)
return M_PROPERTY_ERROR;
r = do_action(prop_list, name, M_PROPERTY_SET, &val, ctx);
m_option_free(&opt, &val);