diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-08 21:55:52 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-08 21:55:52 +0100 |
commit | 3f8bba6852e0e9b12ac119dfb83ad0296eada458 (patch) | |
tree | a2ffb09b96f2cb6c2f9049f162d8e469d3421d7d /vcal.c | |
parent | V{calendar,event} merged into vcomponent, making it symmetic. (diff) | |
download | calp-3f8bba6852e0e9b12ac119dfb83ad0296eada458.tar.gz calp-3f8bba6852e0e9b12ac119dfb83ad0296eada458.tar.xz |
Fix minor memmory error.
Diffstat (limited to 'vcal.c')
-rw-r--r-- | vcal.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -27,6 +27,8 @@ INIT_F(vcomponent, char* filename) { if (filename != NULL) { this->filename = calloc(sizeof(*filename), strlen(filename) + 1); strcpy(this->filename, filename); + } else { + this->filename = NULL; } this->parent = NULL; |