aboutsummaryrefslogtreecommitdiffstats
path: root/unblock-contact.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-12 14:19:06 +0200
committerMattias Andrée <maandree@kth.se>2021-04-12 14:19:06 +0200
commit0e7248ee337b29218b2e7a0be539db6e5da3c8af (patch)
tree8ac0e935a8d739ff8f6d7c00476aa13c31ed6fd1 /unblock-contact.c
parentDeduplicate code and make some small improvements (diff)
downloadcontacts-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 'unblock-contact.c')
-rw-r--r--unblock-contact.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/unblock-contact.c b/unblock-contact.c
index ad2b5a0..e16a97c 100644
--- a/unblock-contact.c
+++ b/unblock-contact.c
@@ -114,6 +114,7 @@ main(int argc, char *argv[])
libcontacts_block_destroy(*w);
free(*w--);
}
+ *w = NULL;
if (libcontacts_save_contact(&contact, user))
eprintf("libcontacts_save_contact %s:", *argv);
}