aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 11:30:36 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 11:30:36 +0100
commit8596f5307ce55ff362d9d22f0b1310f341b0b1e7 (patch)
tree08e8b924d528b29c5adfba505b8006703d479886 /main.c
parentrest (diff)
downloadcalp-8596f5307ce55ff362d9d22f0b1310f341b0b1e7.tar.gz
calp-8596f5307ce55ff362d9d22f0b1310f341b0b1e7.tar.xz
Something.
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index fbd23466..91a5f423 100644
--- a/main.c
+++ b/main.c
@@ -60,10 +60,11 @@ int main (int argc, char** argv) {
printf("component %s, [%u] children\n", ev->type, ev->components.length);
if (strcmp(ev->type, "VEVENT") != 0) continue;
+ content_line* cl = get_property(ev, "SUMMARY");
printf("%3lu : %3lu | %s | %s\n",
i + 1, j + 1,
filename,
- get_property(ev, "SUMMARY")->val->cur->value->key->mem);
+ cl->val->cur->value->key->mem);
}
}
} else if (strcmp(args.argv[0], "-g") == 0) {