diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-color.c b/src/gui/gui-color.c index 68c1e690d..e425d108e 100644 --- a/src/gui/gui-color.c +++ b/src/gui/gui-color.c @@ -424,7 +424,7 @@ gui_color_get_custom (const char *color_name) else str_fg = string_strndup (ptr_color_name, pos_delim - ptr_color_name); - pos_bg = pos_delim + 1; + pos_bg = (pos_delim[1]) ? pos_delim + 1 : NULL; } else { |