diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-12 14:19:06 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-12 14:19:06 +0200 |
commit | 0e7248ee337b29218b2e7a0be539db6e5da3c8af (patch) | |
tree | 8ac0e935a8d739ff8f6d7c00476aa13c31ed6fd1 /set-contact-blocks.c | |
parent | Deduplicate code and make some small improvements (diff) | |
download | contacts-0e7248ee337b29218b2e7a0be539db6e5da3c8af.tar.gz contacts-0e7248ee337b29218b2e7a0be539db6e5da3c8af.tar.bz2 contacts-0e7248ee337b29218b2e7a0be539db6e5da3c8af.tar.xz |
Fix set-contact-blocks and unblock-contact
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | set-contact-blocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/set-contact-blocks.c b/set-contact-blocks.c index 9e1ada5..ddab383 100644 --- a/set-contact-blocks.c +++ b/set-contact-blocks.c @@ -197,7 +197,7 @@ main(int argc, char *argv[]) for (; contact.blocks[i]; i++); contact.blocks = erealloc(contact.blocks, (i + 2) * sizeof(*contact.blocks)); contact.blocks[i + 1] = NULL; - contact.blocks[i] = ecalloc(1, sizeof(**contact.emails)); + contact.blocks[i] = ecalloc(1, sizeof(**contact.blocks)); contact.blocks[i]->service = estrdup(srv ? srv : ".global"); contact.blocks[i]->explicit = explicit; contact.blocks[i]->shadow_block = shadow_block; |