mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
commit
44e99ffcb0
1 changed files with 5 additions and 0 deletions
|
|
@ -320,6 +320,11 @@ void config_file_parse(void)
|
|||
int ret;
|
||||
|
||||
c = malloc(sizeof(struct config_t));
|
||||
if (!c)
|
||||
{
|
||||
fprintf(stderr, "Error: Insufficient memory allocation");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
memset(c, 0, sizeof(struct config_t));
|
||||
|
||||
// Find config file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue