aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pietri <antoine.pietri@lrde.epita.fr>2015-01-26 14:20:20 +0100
committerAntoine Pietri <antoine.pietri@lrde.epita.fr>2015-01-26 14:20:20 +0100
commitfd213feecb33f1bbb46af3199916a001c6ace1a0 (patch)
tree3fab768f6e69ebe2c46a5a08796efe2a26ea7271
parent36ee8c61168ef4c73d5637d1c7a426df6ed15735 (diff)
purple: add NULL guard around topic and name hint
-rw-r--r--protocols/purple/purple.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c
index da3134dd..118a62ad 100644
--- a/protocols/purple/purple.c
+++ b/protocols/purple/purple.c
@@ -831,8 +831,11 @@ void prplcb_conv_new( PurpleConversation *conv )
struct groupchat *gc;
gc = imcb_chat_new( ic, conv->name );
- imcb_chat_name_hint( gc, conv->title );
- imcb_chat_topic( gc, NULL, conv->title, 0 );
+ if( conv->title != NULL )
+ {
+ imcb_chat_name_hint( gc, conv->title );
+ imcb_chat_topic( gc, NULL, conv->title, 0 );
+ }
conv->ui_data = gc;
gc->data = conv;