src/config.c
changeset 6 7eb12be31bb5
parent 0 586472add385
child 10 311ea5fa60dd
equal deleted inserted replaced
5:7c7fc8906920 6:7eb12be31bb5
    35     line = calloc (i, sizeof (char *));
    35     line = calloc (i, sizeof (char *));
    36 
    36 
    37     /*
    37     /*
    38      * We can easily provide default values ...
    38      * We can easily provide default values ...
    39      */
    39      */
    40     uc->nick = uc->pass = uc->server = uc->channel = uc->topic = 0;
    40     uc->nick = uc->pass = uc->server = uc->channel = uc->topic = NULL;
    41     uc->port = 6667;
    41     uc->port = 6667;
    42 
    42 
       
    43     *buffer = 0;
    43     fgets (buffer, 512, f);
    44     fgets (buffer, 512, f);
    44 
    45 
    45     token = buffer;
    46     token = buffer;
    46 
    47 
    47     while (!feof (f)) {
    48     while (!feof (f)) {