[libgda/wip/xml-ddl-tool: 2/5] Fix SIGSEGV if GError parameter is NULL



commit 4ada7808ef4b5c43ba1d3d3a0cb0dc7941b6bd02
Author: Pavlo Solntsev <p sun fun gmail com>
Date:   Wed Apr 18 13:31:57 2018 -0500

    Fix SIGSEGV if GError parameter is NULL

 libgda/gda-ddl-base.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/libgda/gda-ddl-base.c b/libgda/gda-ddl-base.c
index 08347f4da..9a915cc78 100644
--- a/libgda/gda-ddl-base.c
+++ b/libgda/gda-ddl-base.c
@@ -156,7 +156,6 @@ gda_ddl_base_set_names (GdaDdlBase *self,
                        GError **error)
 {
        g_return_val_if_fail (self,FALSE);
-       g_return_val_if_fail (!*error,FALSE);
 
        if (!name) {
                g_set_error (error,GDA_DDL_BASE_ERROR,
@@ -225,7 +224,6 @@ gda_ddl_base_get_full_name (GdaDdlBase *self,
                            GError **error)
 {
        g_return_val_if_fail (self,NULL);
-       g_return_val_if_fail (!*error,NULL);
 
        GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
 
@@ -255,7 +253,6 @@ gda_ddl_base_get_catalog (GdaDdlBase  *self,
                          GError     **error)
 {
        g_return_val_if_fail (self,NULL);
-       g_return_val_if_fail (!*error,NULL);
 
        GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
 
@@ -285,7 +282,6 @@ gda_ddl_base_get_schema (GdaDdlBase  *self,
                         GError     **error)
 {
        g_return_val_if_fail (self,NULL);
-       g_return_val_if_fail (!*error,NULL);
 
        GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
 
@@ -315,7 +311,6 @@ gda_ddl_base_get_name (GdaDdlBase  *self,
                       GError     **error)
 {
        g_return_val_if_fail (self,NULL);
-       g_return_val_if_fail (!*error,NULL);
 
        GdaDdlBasePrivate *priv = gda_ddl_base_get_instance_private (self);
 


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