[libgda] Crasher fixed
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Crasher fixed
- Date: Sun, 26 Sep 2010 11:21:16 +0000 (UTC)
commit 9918f308c631b1b63e501c47ab6197753bb43c8a
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Sep 26 13:19:00 2010 +0200
Crasher fixed
libgda/gda-util.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-util.c b/libgda/gda-util.c
index 2e1e970..492721f 100644
--- a/libgda/gda-util.c
+++ b/libgda/gda-util.c
@@ -1195,8 +1195,10 @@ gda_compute_select_statement_from_update (GdaStatement *update_stmt, GError **er
g_value_set_string ((target->expr->value = gda_value_new (G_TYPE_STRING)), ust->table->table_name);
/* WHERE */
- sst->where_cond = gda_sql_expr_copy (ust->cond);
- GDA_SQL_ANY_PART (sst->where_cond)->parent = GDA_SQL_ANY_PART (sst);
+ if (ust->cond) {
+ sst->where_cond = gda_sql_expr_copy (ust->cond);
+ GDA_SQL_ANY_PART (sst->where_cond)->parent = GDA_SQL_ANY_PART (sst);
+ }
gda_sql_statement_free (upd_stmt);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]