Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber_util.c

    r59c1fe7 r5ebff60  
    819819        return TRUE;
    820820}
    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.