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 /unblock-contact.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 'unblock-contact.c')
-rw-r--r-- | unblock-contact.c | 1 |
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); } |