summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-21 10:07:06 +0100
committerwm4 <wm4@nowhere>2014-11-21 10:09:38 +0100
commit75f38dcc9af5283929152ae097c6085c03c1219f (patch)
tree4da7ca099792059e20970edd27c6c49f58174297
parentdf43e2d22ae1145fb6f1d227eaca9ce693c99e54 (diff)
downloadmpv-75f38dcc9af5283929152ae097c6085c03c1219f.tar.bz2
mpv-75f38dcc9af5283929152ae097c6085c03c1219f.tar.xz
m_property: fix a typo
The wrong value was checked for an error. Oops. Found by Coverity.
-rw-r--r--options/m_property.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_property.c b/options/m_property.c
index 1204f924b6..9a787b8e43 100644
--- a/options/m_property.c
+++ b/options/m_property.c
@@ -201,7 +201,7 @@ int m_property_do(struct mp_log *log, const struct m_property *prop_list,
int err = m_option_get_node(&opt, NULL, node, &val);
if (err == M_OPT_UNKNOWN) {
r = M_PROPERTY_NOT_IMPLEMENTED;
- } else if (r < 0) {
+ } else if (err < 0) {
r = M_PROPERTY_INVALID_FORMAT;
} else {
r = M_PROPERTY_OK;