# HG changeset patch # User Matti Hamalainen # Date 1288731032 -7200 # Node ID 9da39d090ef15fce2313695a4bd092ad992c0110 # Parent 77c35cdd5ce379e1f2ebdee7ff35e3481e87a0d9 Cosmetics. diff -r 77c35cdd5ce3 -r 9da39d090ef1 nnchat.c --- a/nnchat.c Tue Nov 02 22:49:44 2010 +0200 +++ b/nnchat.c Tue Nov 02 22:50:32 2010 +0200 @@ -816,7 +816,7 @@ /* Read config */ { - cfgitem_t *tmpcfg = NULL; + cfgitem_t *tmpcfg; FILE *cfgfile; char *homeDir; @@ -833,6 +833,7 @@ THMSG(0, "Reading configuration from '%s'.\n", setConfigFile); + tmpcfg = NULL; th_cfg_add_comment(&tmpcfg, "General settings"); th_cfg_add_string(&tmpcfg, "username", &optUserName, NULL); th_cfg_add_string(&tmpcfg, "password", &optPassword, NULL);