aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-11-20 00:13:58 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2007-11-20 00:13:58 +0000
commitd75597b0b31f8aa8ca523a3cfa4869e20fca8466 (patch)
treec19f21793a59a252a43dbdab7476dedf760fc5d3 /conf.c
parent3e1e11afc869238d5cfca899d4814fea8a877687 (diff)
Fixed memory management issues introduced by at least the getaddrinfo()
change. (Patch from arnau)
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index 551e8f5e..82487ddf 100644
--- a/conf.c
+++ b/conf.c
@@ -47,10 +47,10 @@ conf_t *conf_load( int argc, char *argv[] )
conf = g_new0( conf_t, 1 );
conf->iface = NULL;
- conf->port = "6667";
+ conf->port = g_strdup( "6667" );
conf->nofork = 0;
conf->verbose = 0;
- conf->primary_storage = "xml";
+ conf->primary_storage = g_strdup( "xml" );
conf->migrate_storage = g_strsplit( "text", ",", -1 );
conf->runmode = RUNMODE_INETD;
conf->authmode = AUTHMODE_OPEN;