Make the database code more robust.

This commit is contained in:
Wilco Baan Hofman 2014-01-12 23:06:33 +01:00 committed by root
parent eb041ce5b4
commit 4d34a694b1
3 changed files with 16 additions and 6 deletions

View file

@ -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 ();