summaryrefslogtreecommitdiffstats
path: root/core/m_property.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/m_property.c')
-rw-r--r--core/m_property.c3
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,