diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-16 12:19:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-16 12:19:13 +0000 |
commit | bf0f8691328a612c7e930c41b998125308655357 (patch) | |
tree | eb73f97ee949f4d09863ee1065302357de937aad | |
parent | 8079432c4c3bd61e2235fdcef2cb62700b35d4de (diff) | |
download | gnunet-gtk-bf0f8691328a612c7e930c41b998125308655357.tar.gz gnunet-gtk-bf0f8691328a612c7e930c41b998125308655357.zip |
fix crash
-rw-r--r-- | src/plugins/chat/chat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/chat/chat.c b/src/plugins/chat/chat.c index de8d4fa9..4f7350db 100644 --- a/src/plugins/chat/chat.c +++ b/src/plugins/chat/chat.c | |||
@@ -238,9 +238,11 @@ receive_callback (void *cls, | |||
238 | char *sndr; | 238 | char *sndr; |
239 | 239 | ||
240 | sndr = | 240 | sndr = |
241 | sender == NULL ? _("anonymous") : GNUNET_pseudonym_id_to_name (chat_ectx, | 241 | sender == NULL |
242 | chat_cfg, | 242 | ? GNUNET_strdup ( _("anonymous")) |
243 | sender); | 243 | : GNUNET_pseudonym_id_to_name (chat_ectx, |
244 | chat_cfg, | ||
245 | sender); | ||
244 | writearg.text_view = client->text_view; | 246 | writearg.text_view = client->text_view; |
245 | writearg.message = message; | 247 | writearg.message = message; |
246 | writearg.sender = sndr; | 248 | writearg.sender = sndr; |