aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-12 13:58:40 +0200
committerMattias Andrée <maandree@kth.se>2021-04-12 13:58:40 +0200
commit5d163f4785200063b0aeaa199178381ea2243423 (patch)
tree08afb8bfc84dcba39e398347b8d7b1e608f73804
parentFix memory leak in libcontacts_save_contact (diff)
downloadlibcontacts-5d163f4785200063b0aeaa199178381ea2243423.tar.gz
libcontacts-5d163f4785200063b0aeaa199178381ea2243423.tar.bz2
libcontacts-5d163f4785200063b0aeaa199178381ea2243423.tar.xz
m fix
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--libcontacts_parse_contact.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcontacts_parse_contact.c b/libcontacts_parse_contact.c
index e0091f8..ead729a 100644
--- a/libcontacts_parse_contact.c
+++ b/libcontacts_parse_contact.c
@@ -420,7 +420,7 @@ libcontacts_parse_contact(char *data, struct libcontacts_contact *contact)
} else if (TEST(unindent(p), "REMOVE") && !contact->blocks[i]->hard_unblock && (t = gettime(p))) {
contact->blocks[i]->hard_unblock = t;
} else {
- if (addstr(&contact->organisations[i]->unrecognised_data, unindent(p)))
+ if (addstr(&contact->blocks[i]->unrecognised_data, unindent(p)))
goto fail;
}
break;