From 374747d09dfc9909d4e4fdac16c358272183a7ce Mon Sep 17 00:00:00 2001 From: Anibal Avelar Date: Thu, 27 Nov 2008 12:42:57 -0600 Subject: [PATCH] Fixed when 'activity' got back a garbage value --- src/sipe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sipe.c b/src/sipe.c index 8884090b..33cd708a 100644 --- a/src/sipe.c +++ b/src/sipe.c @@ -1704,7 +1704,7 @@ static void process_incoming_notify(struct sipe_account_data *sip, struct sipmsg gchar *from; gchar *fromhdr; gchar *tmp2; - gchar *activity; + gchar *activity = g_strdup("available"); xmlnode *pidf; xmlnode *basicstatus = NULL, *tuple, *status; gboolean isonline = FALSE; @@ -1767,6 +1767,9 @@ static void process_incoming_notify(struct sipe_account_data *sip, struct sipmsg } else if (strstr(activity, "away")) { status_id = "away"; } + else{ + status_id = "available"; + } } if (!status_id) { -- 2.11.4.GIT