aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2004-03-04 06:21:15 +0800
committerHans Petter <hansp@src.gnome.org>2004-03-04 06:21:15 +0800
commit47a86abf50840c0755bbcf654380b2e2a6e289a2 (patch)
tree8b9c27c7c8d8408f53935362146bd1d52d412dae
parent98a32f514c568a8c1229e323d1609cb8f5a7ba1f (diff)
downloadgsoc2013-evolution-47a86abf50840c0755bbcf654380b2e2a6e289a2.tar
gsoc2013-evolution-47a86abf50840c0755bbcf654380b2e2a6e289a2.tar.gz
gsoc2013-evolution-47a86abf50840c0755bbcf654380b2e2a6e289a2.tar.bz2
gsoc2013-evolution-47a86abf50840c0755bbcf654380b2e2a6e289a2.tar.lz
gsoc2013-evolution-47a86abf50840c0755bbcf654380b2e2a6e289a2.tar.xz
gsoc2013-evolution-47a86abf50840c0755bbcf654380b2e2a6e289a2.tar.zst
gsoc2013-evolution-47a86abf50840c0755bbcf654380b2e2a6e289a2.zip
Set error to NULL before using it.
2004-03-03 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook-component.c (delete_addressbook_cb): Set error to NULL before using it. svn path=/trunk/; revision=24953
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/component/addressbook-component.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 25ff7ee1ee..1358d51184 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,6 +1,11 @@
2004-03-03 Hans Petter Jansson <hpj@ximian.com>
* gui/component/addressbook-component.c (delete_addressbook_cb):
+ Set error to NULL before using it.
+
+2004-03-03 Hans Petter Jansson <hpj@ximian.com>
+
+ * gui/component/addressbook-component.c (delete_addressbook_cb):
Remove local data, with error reporting on failure.
2004-03-02 Larry Ewing <lewing@ximian.com>
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index b9b84e2cf4..1acba3fcec 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -208,7 +208,7 @@ delete_addressbook_cb (GtkWidget *widget, AddressbookComponent *comp)
GtkWidget *dialog;
EBook *book;
gboolean removed = FALSE;
- GError *error;
+ GError *error = NULL;
priv = comp->priv;