aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-01-22 11:42:58 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-01-22 11:42:58 +0100
commitebe5c7e428b57dca758b1b3a1d8b7d4b423b19a9 (patch)
treebf97a4ba3a05c24ae1ec176f42656ce1608ee8d1 /parse.c
parentAdd very simple err header. (diff)
downloadcalp-ebe5c7e428b57dca758b1b3a1d8b7d4b423b19a9.tar.gz
calp-ebe5c7e428b57dca758b1b3a1d8b7d4b423b19a9.tar.xz
Start using trie's instead of hash-maps.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/parse.c b/parse.c
index a2ceae6a..83693e8c 100644
--- a/parse.c
+++ b/parse.c
@@ -26,6 +26,7 @@ int parse_file(FILE* f, vcalendar* cal) {
int line = 0;
+ // TODO these are never freed.
NEW(vevent, ev, /**/ 100);
SNEW(content_line, cline, keylen, vallen);
@@ -69,13 +70,11 @@ int parse_file(FILE* f, vcalendar* cal) {
}
/* At TRUE end of line */
- /*
if (str.ptr + 1 > vallen) {
vallen = str.ptr + 1;
- // TODO this fails
strbuf_realloc(&cline.val, vallen);
}
- */
+
strbuf_copy(&cline.val, &str);
strbuf_cap(&cline.val);