about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-27 21:59:48 +0000
committerJames Booth <boothj5@gmail.com>2012-11-27 21:59:48 +0000
commit4b460100ad73c24233ffad79d52b8ee6d1c172bb (patch)
tree081dab0d2875a2ca922acc5fee0d9d01ee02c1d6
parentebf8911ffc2fc10c66f3c72c2958119d1e41b4db (diff)
downloadprofani-tty-4b460100ad73c24233ffad79d52b8ee6d1c172bb.tar.gz
Default contact subscription set to "none"
-rw-r--r--src/contact.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contact.c b/src/contact.c
index 3b0d1944..9188b5f0 100644
--- a/src/contact.c
+++ b/src/contact.c
@@ -62,7 +62,7 @@ p_contact_new(const char * const jid, const char * const name,
     if (subscription != NULL)
         contact->subscription = strdup(subscription);
     else
-        contact->subscription = NULL;
+        contact->subscription = strdup("none");;
 
     return contact;
 }