aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-06-21 19:14:49 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-06-21 19:14:49 +0200
commit00ab35016e3646aa936ae0c3d7a8531ec68d6f24 (patch)
treebcf19052c57f170e36bf8e9cce3275f4f117307b /conf.c
parent2b14eef99faf7e113cc6c17d68bf6402f87ddd66 (diff)
Fixed GError memory leak, correctly setting the migrate_storage default.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index d70117f5..3154eb9c 100644
--- a/conf.c
+++ b/conf.c
@@ -41,7 +41,6 @@ static int conf_loadini( conf_t *conf, char *file );
conf_t *conf_load( int argc, char *argv[] )
{
- char *mig_list[2] = { "text", NULL };
conf_t *conf;
int opt, i;
@@ -56,7 +55,7 @@ conf_t *conf_load( int argc, char *argv[] )
conf->nofork = 0;
conf->verbose = 0;
conf->primary_storage = "xml";
- conf->migrate_storage = mig_list;
+ conf->migrate_storage = g_strsplit( "text", ",", -1 );
conf->runmode = RUNMODE_INETD;
conf->authmode = AUTHMODE_OPEN;
conf->auth_pass = NULL;