[libgda/LIBGDA_5.0] Fixed crasher
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_5.0] Fixed crasher
- Date: Sat, 10 Mar 2012 13:32:28 +0000 (UTC)
commit 2afae7db3ed5ee54d73fd6824c83673ec315db7f
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Feb 8 17:18:03 2012 +0100
Fixed crasher
providers/ldap/gdaprov-data-model-ldap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/providers/ldap/gdaprov-data-model-ldap.c b/providers/ldap/gdaprov-data-model-ldap.c
index c88793e..274d7c2 100644
--- a/providers/ldap/gdaprov-data-model-ldap.c
+++ b/providers/ldap/gdaprov-data-model-ldap.c
@@ -851,7 +851,7 @@ update_iter_from_ldap_row (GdaDataModelLdap *imodel, GdaDataModelIter *iter)
if (gda_data_model_iter_is_valid (iter)) {
imodel->priv->iter_row ++;
if ((imodel->priv->iter_row == imodel->priv->n_rows - 1) && imodel->priv->truncated) {
- GError *e;
+ GError *e = NULL;
g_set_error (&e, GDA_DATA_MODEL_ERROR,
GDA_DATA_MODEL_TRUNCATED_ERROR,
"%s", _("Truncated result because LDAP server limit encountered"));
@@ -1108,7 +1108,7 @@ gda_data_model_ldap_iter_next (GdaDataModel *model, GdaDataModelIter *iter)
gda_data_model_iter_invalidate_contents (iter);
g_object_set (G_OBJECT (iter), "current-row", -1, NULL);
if (imodel->priv->truncated) {
- GError *e;
+ GError *e = NULL;
g_set_error (&e, GDA_DATA_MODEL_ERROR,
GDA_DATA_MODEL_TRUNCATED_ERROR,
"%s", _("Truncated result because LDAP server limit encountered"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]