aboutsummaryrefslogtreecommitdiffstats
path: root/set-contact-blocks.c
diff options
context:
space:
mode:
Diffstat (limited to 'set-contact-blocks.c')
-rw-r--r--set-contact-blocks.c2
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;