Commit cc84f896 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

variables: Set void_ops by default.

This fixes [45e63d59]
parent 875fa514
......@@ -135,6 +135,7 @@ static void FreeList( vlc_value_t *p_val )
}
static const struct variable_ops_t
void_ops = { NULL, DupDummy, FreeDummy, },
addr_ops = { CmpAddress, DupDummy, FreeDummy, },
bool_ops = { CmpBool, DupDummy, FreeDummy, },
float_ops = { CmpFloat, DupDummy, FreeDummy, },
......@@ -276,6 +277,9 @@ int __var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
p_var->ops = &list_ops;
p_var->val.p_list = &dummy_null_list;
break;
default:
p_var->ops = &void_ops;
break;
}
/* Duplicate the default data we stored. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment