From 47a86abf50840c0755bbcf654380b2e2a6e289a2 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Wed, 3 Mar 2004 22:21:15 +0000 Subject: Set error to NULL before using it. 2004-03-03 Hans Petter Jansson * gui/component/addressbook-component.c (delete_addressbook_cb): Set error to NULL before using it. svn path=/trunk/; revision=24953 --- addressbook/ChangeLog | 5 +++++ addressbook/gui/component/addressbook-component.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 25ff7ee1ee..1358d51184 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2004-03-03 Hans Petter Jansson + + * gui/component/addressbook-component.c (delete_addressbook_cb): + Set error to NULL before using it. + 2004-03-03 Hans Petter Jansson * gui/component/addressbook-component.c (delete_addressbook_cb): 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; -- cgit v1.2.3