aboutsummaryrefslogtreecommitdiff
path: root/src/vcal.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-03-31 00:11:05 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-03-31 00:11:05 +0100
commitae630ed595330f102685bbbb96c01a8c24b8923a (patch)
treeee1162df4a3c2a181b9d48e5281c7f33e18eaeb5 /src/vcal.c
parentCal name now set to basename of path. (diff)
downloadcalp-ae630ed595330f102685bbbb96c01a8c24b8923a.tar.gz
calp-ae630ed595330f102685bbbb96c01a8c24b8923a.tar.xz
Add cval field to LLIST.
Diffstat (limited to 'src/vcal.c')
-rw-r--r--src/vcal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vcal.c b/src/vcal.c
index 2a610187..297ed52e 100644
--- a/src/vcal.c
+++ b/src/vcal.c
@@ -164,8 +164,8 @@ char* vcomponent_get_val (vcomponent* comp, const char* key) {
content_line* cl = GET(TRIE(content_line))(&comp->clines, key_cpy);
free (key_cpy);
- if (cl != NULL && cl->cur->value != NULL) {
- return cl->cur->value->key.mem;
+ if (cl != NULL && cl->cval != NULL) {
+ return cl->cval->key.mem;
}
return NULL;