changeset 148:9da39d090ef1

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Nov 2010 22:50:32 +0200
parents 77c35cdd5ce3
children a4d6707161a7
files nnchat.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);