color schemes - dont crash when duplication a NULL scheme - use default

terminology-1.9
Carsten Haitzler 2 years ago
parent 292215d770
commit d9e63b3d3d
  1. 1
      src/bin/colors.c

@ -815,6 +815,7 @@ Color_Scheme *
color_scheme_dup(const Color_Scheme *src)
{
Color_Scheme *cs;
if (!src) src = &default_colorscheme;
size_t len_name = strlen(src->md.name) + 1;
size_t len_author = strlen(src->md.author) + 1;
size_t len_website = strlen(src->md.website) + 1;

Loading…
Cancel
Save