db/simple: pass the correct GError pointer
This commit is contained in:
parent
ec43721c3c
commit
d83dea4463
|
@ -68,7 +68,7 @@ simple_db_init(const struct config_param *param, GError **error_r)
|
||||||
db_base_init(&db->base, &simple_db_plugin);
|
db_base_init(&db->base, &simple_db_plugin);
|
||||||
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
db->path = config_dup_block_path(param, "path", error_r);
|
db->path = config_dup_block_path(param, "path", &error);
|
||||||
if (db->path == NULL) {
|
if (db->path == NULL) {
|
||||||
g_free(db);
|
g_free(db);
|
||||||
if (error != NULL)
|
if (error != NULL)
|
||||||
|
|
Loading…
Reference in New Issue