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