From 14b33ae9c00f74a24a00aaece88b22af0955379e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 4 Feb 2019 18:23:51 +0100 Subject: Fix most memmory errors. --- vcal.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'vcal.h') diff --git a/vcal.h b/vcal.h index 03d04805..9123e3fa 100644 --- a/vcal.h +++ b/vcal.h @@ -28,8 +28,13 @@ typedef struct { INIT_F(content_line); INIT_F(content_line, int keylen, int vallen); -int RESOLVE(content_line) - (content_line** orig, content_line* new); +/* + * This takes two content lines, and return a content line that is the + * merge of the two. + * The function also cleans up the unused memmory between the two. + */ +content_line* RESOLVE(content_line) + (content_line* dest, content_line* new); #define TYPE content_line // #include "hash.h" -- cgit v1.2.3