mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
malloc -> calloc
suggested by and ok oga@
This commit is contained in:
parent
343ec1bb4f
commit
fe80d40063
1
calmwm.c
1
calmwm.c
@ -81,6 +81,7 @@ main(int argc, char **argv)
|
|||||||
group_init();
|
group_init();
|
||||||
|
|
||||||
Starting = 1;
|
Starting = 1;
|
||||||
|
bzero(&Conf, sizeof(Conf));
|
||||||
conf_setup(&Conf, conffile);
|
conf_setup(&Conf, conffile);
|
||||||
client_setup();
|
client_setup();
|
||||||
x_setup(display_name);
|
x_setup(display_name);
|
||||||
|
3
parse.y
3
parse.y
@ -513,8 +513,7 @@ parse_config(const char *filename, struct conf *xconf)
|
|||||||
{
|
{
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
|
|
||||||
if ((conf = malloc(sizeof(struct conf))) == NULL)
|
XCALLOC(conf, struct conf);
|
||||||
return (-1);
|
|
||||||
|
|
||||||
if ((file = pushfile(filename)) == NULL) {
|
if ((file = pushfile(filename)) == NULL) {
|
||||||
free(conf);
|
free(conf);
|
||||||
|
Loading…
Reference in New Issue
Block a user