[libgda: 7/15] Fixing logic to avoid NULL string
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda: 7/15] Fixing logic to avoid NULL string
- Date: Fri, 11 Jan 2019 19:49:01 +0000 (UTC)
commit 2c2cb94a745047e9c8ab71b9b52c32093f5b77f5
Author: Pavlo Solntsev <p sun fun gmail com>
Date: Wed Jan 2 22:24:40 2019 -0600
Fixing logic to avoid NULL string
libgda/gda-meta-store.c | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/libgda/gda-meta-store.c b/libgda/gda-meta-store.c
index eebb67229..a7116a3dc 100644
--- a/libgda/gda-meta-store.c
+++ b/libgda/gda-meta-store.c
@@ -1864,13 +1864,16 @@ create_table_object (GdaMetaStoreClass *klass, GdaMetaStore *store, xmlNodePtr n
}
/* determine object's complete name */
- if (store) {
- priv = gda_meta_store_get_instance_private (store);
- if (priv->schema) {
- complete_obj_name = g_strdup_printf ("%s.%s", priv->schema, (gchar *) table_name);
- }
- } else
- complete_obj_name = g_strdup ((gchar *) table_name);
+ if (store)
+ {
+ priv = gda_meta_store_get_instance_private (store);
+ if (priv->schema)
+ complete_obj_name = g_strdup_printf ("%s.%s", priv->schema, (gchar *) table_name);
+ else
+ complete_obj_name = g_strdup ((gchar *) table_name);
+ }
+ else
+ complete_obj_name = g_strdup ((gchar *) table_name);
/* DbObject structure */
if (store) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]