about summary refs log tree commit diff stats
path: root/src/ui/buffer.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-02-02 21:52:13 +0000
committerJames Booth <boothj5@gmail.com>2016-02-02 21:52:13 +0000
commit150015fa3dd0238671d11f2c6c3ba677e7aab81f (patch)
treeafe64495d83744407c7cb37488f288cfed6d1e16 /src/ui/buffer.c
parentf0837abf0a56a2f77a79c7e4fe6f25de33bb012f (diff)
downloadprofani-tty-150015fa3dd0238671d11f2c6c3ba677e7aab81f.tar.gz
Show message in private windows when user offline
Diffstat (limited to 'src/ui/buffer.c')
-rw-r--r--src/ui/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/buffer.c b/src/ui/buffer.c
index 629aa9e7..0b9da448 100644
--- a/src/ui/buffer.c
+++ b/src/ui/buffer.c
@@ -88,7 +88,7 @@ buffer_push(ProfBuff buffer, const char show_char, int pad_indent, GDateTime *ti
     e->flags = flags;
     e->theme_item = theme_item;
     e->time = g_date_time_ref(time);
-    e->from = strdup(from);
+    e->from = from ? strdup(from) : NULL;
     e->message = strdup(message);
     e->receipt = receipt;