From cb24ba8be175e0ddde93a0e01c286ee7cab2b241 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 28 Jan 2013 21:17:00 +0000 Subject: jabber_get_status no longer returns newly allocated string --- src/xmpp_conn.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/xmpp_conn.c') diff --git a/src/xmpp_conn.c b/src/xmpp_conn.c index 6b37fe8b..07e592e7 100644 --- a/src/xmpp_conn.c +++ b/src/xmpp_conn.c @@ -542,13 +542,11 @@ jabber_get_presence(void) return jabber_conn.presence; } +// returns pointer to status, owned by connection char * jabber_get_status(void) { - if (jabber_conn.status == NULL) - return NULL; - else - return strdup(jabber_conn.status); + return jabber_conn.status; } void -- cgit 1.4.1-2-gfad0