diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-21 11:42:12 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-21 11:42:12 +0100 |
commit | 86f7e40446106f8365df4f52af4ec2ee5dcb37aa (patch) | |
tree | aa97d03d69e0e4ed51a3de7525d4370afac608c1 /vcal.c | |
parent | Rename all instances of string to strbuf. (diff) | |
download | calp-86f7e40446106f8365df4f52af4ec2ee5dcb37aa.tar.gz calp-86f7e40446106f8365df4f52af4ec2ee5dcb37aa.tar.xz |
Remove all explicit malloc's.
Diffstat (limited to 'vcal.c')
-rw-r--r-- | vcal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -95,8 +95,8 @@ int push_event(vcalendar* cal, vevent* ev) { } int CONSTRUCTOR_DECL(vcalendar) { - this->events = malloc(sizeof(*this->events)); this->alloc = 1; + this->events = calloc(sizeof(*this->events), this->alloc); this->n_events = 0; return 0; } |