mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Simplify kvz_config_alloc
This commit is contained in:
parent
2d7daa1da7
commit
fd057498fc
10
src/cfg.c
10
src/cfg.c
|
@ -27,15 +27,7 @@
|
|||
|
||||
kvz_config *kvz_config_alloc(void)
|
||||
{
|
||||
kvz_config *cfg = (kvz_config *)malloc(sizeof(kvz_config));
|
||||
if (!cfg) {
|
||||
fprintf(stderr, "Failed to allocate a config object!\n");
|
||||
return cfg;
|
||||
}
|
||||
|
||||
FILL(*cfg, 0);
|
||||
|
||||
return cfg;
|
||||
return calloc(1, sizeof(kvz_config));
|
||||
}
|
||||
|
||||
int kvz_config_init(kvz_config *cfg)
|
||||
|
|
Loading…
Reference in a new issue