calloc -> malloc
This commit is contained in:
2
conf.c
2
conf.c
@@ -76,7 +76,7 @@ conf_autogroup(struct conf *c, int num, const char *val)
|
|||||||
struct autogroupwin *aw;
|
struct autogroupwin *aw;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
aw = xcalloc(1, sizeof(*aw));
|
aw = xmalloc(sizeof(*aw));
|
||||||
|
|
||||||
if ((p = strchr(val, ',')) == NULL) {
|
if ((p = strchr(val, ',')) == NULL) {
|
||||||
aw->name = NULL;
|
aw->name = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user