aboutsummaryrefslogtreecommitdiffstats
path: root/unblock-contact.c
diff options
context:
space:
mode:
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);
}