Make the database code more robust.
This commit is contained in:
parent
eb041ce5b4
commit
4d34a694b1
3 changed files with 16 additions and 6 deletions
2
config.c
2
config.c
|
@ -111,7 +111,7 @@ STATUS read_configuration_file(TALLOC_CTX *mem_ctx)
|
|||
GError *error = NULL;
|
||||
char *buf, *ptr;
|
||||
|
||||
conf = talloc(mem_ctx, configuration);
|
||||
conf = talloc_zero(mem_ctx, configuration);
|
||||
NO_MEM_RETURN(conf);
|
||||
|
||||
conf->keyfile = g_key_file_new ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue