1.1 --- a/src/text.c Thu Jan 18 21:53:16 2024 +0100 1.2 +++ b/src/text.c Thu Jan 18 21:58:58 2024 +0100 1.3 @@ -42,7 +42,9 @@ 1.4 node->position = (asc_vec2i) {x, y}; 1.5 node->font = asc_context.active_font; 1.6 node->color = asc_context.ink; 1.7 - node->text = strdup(text); 1.8 + if (text != NULL) { 1.9 + node->text = strdup(text); 1.10 + } 1.11 1.12 return node; 1.13 }