mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
use malloc over calloc here
This commit is contained in:
parent
5146f661bd
commit
d8fa58bb62
2
conf.c
2
conf.c
@ -96,7 +96,7 @@ conf_ignore(struct conf *c, const char *name)
|
|||||||
{
|
{
|
||||||
struct winname *wn;
|
struct winname *wn;
|
||||||
|
|
||||||
wn = xcalloc(1, sizeof(*wn));
|
wn = xmalloc(sizeof(*wn));
|
||||||
wn->name = xstrdup(name);
|
wn->name = xstrdup(name);
|
||||||
TAILQ_INSERT_TAIL(&c->ignoreq, wn, entry);
|
TAILQ_INSERT_TAIL(&c->ignoreq, wn, entry);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user