Commit e6552497 authored by Rémi Duraffort's avatar Rémi Duraffort

modules: assert when trying to add more than one deprecated alias.

parent 081ffed5
...@@ -347,6 +347,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...) ...@@ -347,6 +347,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
case VLC_CONFIG_OLDNAME: case VLC_CONFIG_OLDNAME:
{ {
const char *oldname = va_arg (ap, const char *); const char *oldname = va_arg (ap, const char *);
assert (item->psz_oldname == NULL);
item->psz_oldname = oldname ? strdup (oldname) : NULL; item->psz_oldname = oldname ? strdup (oldname) : NULL;
break; break;
} }
......
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