diff options
author | wm4 <wm4@nowhere> | 2013-07-26 00:18:37 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-26 00:19:15 +0200 |
commit | ad1641c0dab6cdd7bac52d261bcc03d81d14cc21 (patch) | |
tree | b0710d603b4e4ae22693c83648169ba71699f86b /core/m_property.c | |
parent | 9cc5630fd54d9abadd52fdedb1bac30d1b09d99a (diff) | |
download | mpv-ad1641c0dab6cdd7bac52d261bcc03d81d14cc21.tar.bz2 mpv-ad1641c0dab6cdd7bac52d261bcc03d81d14cc21.tar.xz |
m_property: fix non-sense code
Undefined behavior.
Diffstat (limited to 'core/m_property.c')
-rw-r--r-- | core/m_property.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/m_property.c b/core/m_property.c index 904148e6ee..e908da623b 100644 --- a/core/m_property.c +++ b/core/m_property.c @@ -87,13 +87,14 @@ static int do_action(const m_option_t *prop_list, const char *name, { const char *sep; const m_option_t *prop; + struct m_property_action_arg ka; if ((sep = strchr(name, '/')) && sep[1]) { int len = sep - name; char base[len + 1]; memcpy(base, name, len); base[len] = 0; prop = m_option_list_find(prop_list, base); - struct m_property_action_arg ka = { + ka = (struct m_property_action_arg) { .key = sep + 1, .action = action, .arg = arg, |