[libgda] t-app: removing warning



commit cd854d0b1b144a201c79001c8782457384199c6f
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date:   Sun Feb 17 10:14:30 2019 -0600

    t-app: removing warning

 tools/common/t-app.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tools/common/t-app.c b/tools/common/t-app.c
index 850b2f2cf..3597a5633 100644
--- a/tools/common/t-app.c
+++ b/tools/common/t-app.c
@@ -5250,9 +5250,9 @@ extra_command_ldap_search (ToolCommand *command, guint argc, const gchar **argv,
        GdaHolder *param;
        const gchar *ldap_attributes;
        ldap_attributes = g_value_get_string (gda_set_get_holder_value (global_t_app->priv->options, 
"ldap_attributes"));
-       model = gda_data_model_ldap_new_with_config (t_connection_get_cnc (tcnc), base_dn, lfilter ? lfilter 
: filter,
+       model = GDA_DATA_MODEL (gda_data_model_ldap_new_with_config (t_connection_get_cnc (tcnc), base_dn, 
lfilter != NULL ?  lfilter : filter,
                                         ldap_attributes ? ldap_attributes : T_DEFAULT_LDAP_ATTRIBUTES,
-                                        lscope);
+                                        lscope));
        g_free (lfilter);
        param = gda_set_get_holder (global_t_app->priv->options, "ldap_dn");
        wrapper = gda_data_access_wrapper_new (model);


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