Changeset 3cbf71d for protocols/jabber


Ignore:
Timestamp:
2015-10-08T04:58:59Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
c2969f9
Parents:
355e2ad
git-author:
dequis <dx@…> (16-09-15 06:30:16)
git-committer:
dequis <dx@…> (08-10-15 04:58:59)
Message:

jabber: fix null handling with MUC topics

From coverity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    r355e2ad r3cbf71d  
    439439
    440440        if (subject && chat) {
    441                 char *subject_text = subject->text_len > 0 ? subject->text : NULL;
     441                char *subject_text = subject->text_len > 0 ? subject->text : "";
    442442                if (g_strcmp0(chat->topic, subject_text) != 0) {
    443443                        bare_jid = (bud) ? jabber_get_bare_jid(bud->ext_jid) : NULL;
     
    445445                                        jabber_get_timestamp(node));
    446446                        g_free(bare_jid);
     447                        bare_jid = NULL;
    447448                }
    448449        }
Note: See TracChangeset for help on using the changeset viewer.