aboutsummaryrefslogtreecommitdiff
path: root/contact.go
diff options
context:
space:
mode:
Diffstat (limited to 'contact.go')
-rw-r--r--contact.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/contact.go b/contact.go
index dcd5826..8b0b054 100644
--- a/contact.go
+++ b/contact.go
@@ -33,6 +33,7 @@ func (c *Contacts) UnmarshalJSON(b []byte) error {
if err != nil {
return err
}
+ *c = nil // invalidate old value
for _, s := range tmp {
switch {
case strings.HasPrefix(s, "mailto:"):