[libgda: 1/2] Wrong pointer check.



commit e6dd379f7e0cb17aedb992e945ad0b20d2f879bc
Author: Pavlo Solntsev <p sun fun gmail com>
Date:   Thu Aug 1 13:36:40 2019 -0500

    Wrong pointer check.
    
    Fixing wrong pointer check for NULL

 libgda/gda-connection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgda/gda-connection.c b/libgda/gda-connection.c
index 2035ba8f4..b6f3c9341 100644
--- a/libgda/gda-connection.c
+++ b/libgda/gda-connection.c
@@ -1047,7 +1047,7 @@ gda_connection_new_from_dsn (GdaDsnInfo *dsn,
   g_return_val_if_fail (dsn->cnc_string, NULL);
 
 /* try to find provider */
-  if (!dsn->provider)
+  if (dsn->provider)
    {
       GdaProviderInfo *pinfo = NULL;
       GdaServerProvider *prov = NULL;


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