mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-24 20:48:52 +02:00
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 */
|
/* Allocate memory */
|
||||||
if (lines)
|
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))
|
if (unlikely(plugin->conf.params == NULL))
|
||||||
{
|
{
|
||||||
plugin->conf.size = 0;
|
plugin->conf.size = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user