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