[libgda] meta-store: fix private initialization warning



commit d95ea6ec5375595a81fdf719f32490037cb17597
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Sep 9 19:48:37 2018 -0500

    meta-store: fix private initialization warning

 libgda/gda-meta-store.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgda/gda-meta-store.c b/libgda/gda-meta-store.c
index 885de4a57..824754992 100644
--- a/libgda/gda-meta-store.c
+++ b/libgda/gda-meta-store.c
@@ -1726,8 +1726,8 @@ create_view_object (GdaMetaStoreClass *klass, GdaMetaStore *store, xmlNodePtr no
 
        /* determine object's complete name */
        if (store) {
+               priv = gda_meta_store_get_instance_private (store);
                if (priv->schema) {
-                       priv = gda_meta_store_get_instance_private (store);
                        complete_obj_name = g_strdup_printf ("%s.%s", priv->schema, (gchar *) view_name);
                }
        } else


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