src/config.c
changeset 6 7eb12be31bb5
parent 0 586472add385
child 10 311ea5fa60dd
--- a/src/config.c
+++ b/src/config.c
@@ -37,9 +37,10 @@
     /*
      * We can easily provide default values ...
      */
-    uc->nick = uc->pass = uc->server = uc->channel = uc->topic = 0;
+    uc->nick = uc->pass = uc->server = uc->channel = uc->topic = NULL;
     uc->port = 6667;
 
+    *buffer = 0;
     fgets (buffer, 512, f);
 
     token = buffer;