malloc -> calloc

suggested by and ok oga@
This commit is contained in:
okan 2008-04-15 18:22:08 +00:00
parent 343ec1bb4f
commit fe80d40063
2 changed files with 2 additions and 2 deletions

View File

@ -81,6 +81,7 @@ main(int argc, char **argv)
group_init();
Starting = 1;
bzero(&Conf, sizeof(Conf));
conf_setup(&Conf, conffile);
client_setup();
x_setup(display_name);

View File

@ -513,8 +513,7 @@ parse_config(const char *filename, struct conf *xconf)
{
int errors = 0;
if ((conf = malloc(sizeof(struct conf))) == NULL)
return (-1);
XCALLOC(conf, struct conf);
if ((file = pushfile(filename)) == NULL) {
free(conf);