aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-01-21 11:42:12 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-01-21 11:42:12 +0100
commit86f7e40446106f8365df4f52af4ec2ee5dcb37aa (patch)
treeaa97d03d69e0e4ed51a3de7525d4370afac608c1 /parse.c
parentRename all instances of string to strbuf. (diff)
downloadcalp-86f7e40446106f8365df4f52af4ec2ee5dcb37aa.tar.gz
calp-86f7e40446106f8365df4f52af4ec2ee5dcb37aa.tar.xz
Remove all explicit malloc's.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 76eb2300..be7e0a6a 100644
--- a/parse.c
+++ b/parse.c
@@ -178,7 +178,7 @@ int handle_kv(
return 3;
}
} else {
- content_line* c = malloc(sizeof(*c));
+ NEW(content_line, c);
content_line_copy(c, cline);
add_content_line (ev, c);
}