Changes in protocols/jabber/jabber_util.c [3d31618:098a75b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber_util.c
r3d31618 r098a75b 820 820 return TRUE; 821 821 } 822 823 /* Returns new reference! g_free() afterwards. */824 char *jabber_get_bare_jid(char *jid)825 {826 char *s = NULL;827 828 if (jid == NULL) {829 return NULL;830 }831 832 if ((s = strchr(jid, '/'))) {833 return g_strndup(jid, s - jid);834 } else {835 return g_strdup(jid);836 }837 }
Note: See TracChangeset
for help on using the changeset viewer.