This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository terminology.

View the commit online.

commit 54090973732c31e28f3e3855547046bb8afd0ab3
Author: Boris Faure <bill...@gmail.com>
AuthorDate: Sat Mar 25 15:01:48 2023 +0100

    colors: handle case when no color scheme is chosen
---
 src/bin/colors.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/colors.c b/src/bin/colors.c
index 60d4434..8949a8a 100644
--- a/src/bin/colors.c
+++ b/src/bin/colors.c
@@ -721,7 +721,8 @@ config_compute_color_scheme(Config *cfg)
    EINA_SAFETY_ON_NULL_RETURN(cfg);
 
    free((void*)cfg->color_scheme);
-   cfg->color_scheme = _color_scheme_get(cfg->color_scheme_name);
+   cfg->color_scheme = (cfg->color_scheme_name) ?
+      _color_scheme_get(cfg->color_scheme_name) : NULL;
    if (!cfg->color_scheme)
      {
         eina_stringshare_del(cfg->color_scheme_name);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to