mirror of https://code.videolan.org/videolan/vlc
modules: fix calloc() arguments
This commit is contained in:
parent
f436f96a8a
commit
509c0e816d
|
@ -258,7 +258,7 @@ static int vlc_cache_load_plugin_config(vlc_plugin_t *plugin, block_t *file)
|
|||
/* Allocate memory */
|
||||
if (lines)
|
||||
{
|
||||
plugin->conf.params = calloc(sizeof (struct vlc_param), lines);
|
||||
plugin->conf.params = calloc(lines, sizeof (struct vlc_param));
|
||||
if (unlikely(plugin->conf.params == NULL))
|
||||
{
|
||||
plugin->conf.size = 0;
|
||||
|
|
Loading…
Reference in New Issue