[gimp] libgimp: fix segfault in gimp_procedure_config_load_default() with NULL error



commit d17dc3112f3cb78d93055de1e1e6af89677f8902
Author: Ell <ell_se yahoo com>
Date:   Wed Oct 2 20:51:59 2019 +0300

    libgimp: fix segfault in gimp_procedure_config_load_default() with NULL error

 libgimp/gimpprocedureconfig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgimp/gimpprocedureconfig.c b/libgimp/gimpprocedureconfig.c
index 5622a2eb1d..799e00b494 100644
--- a/libgimp/gimpprocedureconfig.c
+++ b/libgimp/gimpprocedureconfig.c
@@ -454,7 +454,7 @@ gimp_procedure_config_load_default (GimpProcedureConfig  *config,
                                           file,
                                           NULL, error);
 
-  if (! success && (*error)->code == GIMP_CONFIG_ERROR_OPEN_ENOENT)
+  if (! success && error && (*error)->code == GIMP_CONFIG_ERROR_OPEN_ENOENT)
     {
       g_clear_error (error);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]