summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-10 01:30:53 +0200
committerwm4 <wm4@nowhere>2012-08-10 01:30:53 +0200
commit4e2fe3724b3bcd61794cf4fca88adf383f5547d4 (patch)
tree1803af2f2c66e36d14e302151cc13aa66d58a138
parentb4dd2194d5c2540583becf6c021d8eb0f52cddc0 (diff)
downloadmpv-4e2fe3724b3bcd61794cf4fca88adf383f5547d4.tar.bz2
mpv-4e2fe3724b3bcd61794cf4fca88adf383f5547d4.tar.xz
command: fix crash when setting nonexistent property
Commit ebaaa41f2a4 accidentally removed the final terminator of the properties array.
-rw-r--r--command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/command.c b/command.c
index 66ff8d131a..8bcfc8c0d2 100644
--- a/command.c
+++ b/command.c
@@ -2249,6 +2249,8 @@ static const m_option_t mp_properties[] = {
{ "tv_hue", mp_property_tv_color, CONF_TYPE_INT,
M_OPT_RANGE, -100, 100, .offset = TV_COLOR_HUE },
#endif
+
+ {0},
};