[libgda/LIBGDA_4.0] Correction for bug #594118
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.0] Correction for bug #594118
- Date: Fri, 4 Sep 2009 20:10:40 +0000 (UTC)
commit d0396bb50dc7ec581a2eb26a39c96753e37f1ab9
Author: Vivien Malerba <malerba gnome-db org>
Date: Fri Sep 4 21:50:50 2009 +0200
Correction for bug #594118
libgda/gda-data-model.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/libgda/gda-data-model.c b/libgda/gda-data-model.c
index e0a6801..1947870 100644
--- a/libgda/gda-data-model.c
+++ b/libgda/gda-data-model.c
@@ -1965,7 +1965,7 @@ real_gda_data_model_dump_as_string (GdaDataModel *model, gboolean dump_attribute
gboolean allok = TRUE;
GString *string;
- gchar *offstr, *str;
+ gchar *str;
gint n_cols, n_rows;
gint *cols_size;
gboolean *cols_is_num;
@@ -1984,10 +1984,6 @@ real_gda_data_model_dump_as_string (GdaDataModel *model, gboolean dump_attribute
string = g_string_new ("");
- /* string for the offset */
- offstr = g_new0 (gchar, offset+1);
- memset (offstr, ' ', offset);
-
/* compute the columns widths: using column titles... */
n_cols = gda_data_model_get_n_columns (model);
n_rows = gda_data_model_get_n_rows (model);
@@ -2261,8 +2257,6 @@ real_gda_data_model_dump_as_string (GdaDataModel *model, gboolean dump_attribute
g_free (cols_size);
g_free (cols_is_num);
- g_free (offstr);
-
if (allok) {
str = string->str;
g_string_free (string, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]