Commit e65e7197 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix config item counting

parent 607b5458
...@@ -809,8 +809,7 @@ module_config_t *module_GetConfig (const module_t *module, unsigned *restrict ps ...@@ -809,8 +809,7 @@ module_config_t *module_GetConfig (const module_t *module, unsigned *restrict ps
if (config != NULL) if (config != NULL)
memcpy (config + j, item, sizeof (*config)); memcpy (config + j, item, sizeof (*config));
*psize = j; *psize = ++j;
j++;
} }
return config; return config;
......
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