about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/buffer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/buffer.c b/src/ui/buffer.c
index b36f19e7..f24f1d8f 100644
--- a/src/ui/buffer.c
+++ b/src/ui/buffer.c
@@ -91,7 +91,11 @@ buffer_append(ProfBuff buffer, const char show_char, int pad_indent, GDateTime *
     e->from = from ? strdup(from) : NULL;
     e->message = strdup(message);
     e->receipt = receipt;
-    e->id = strdup(id);
+    if (id) {
+        e->id = strdup(id);
+    } else {
+        e->id = NULL;
+    }
 
     if (g_slist_length(buffer->entries) == BUFF_SIZE) {
         _free_entry(buffer->entries->data);
t'>
0269129d ^
6f1119d2 ^
f1875919 ^
89c7de77 ^
55b3e9d4 ^

89c7de77 ^
a3dccce2 ^
06882c01 ^

0269129d ^
a7de5933 ^


0bf9d324 ^
a7de5933 ^
0bf9d324 ^




a7de5933 ^
0bf9d324 ^





cd084c7e ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44