aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2000-03-29 11:26:37 +0800
committerChris Toshok <toshok@src.gnome.org>2000-03-29 11:26:37 +0800
commit6ba417b085e0e7049f99bfd63c492468a14c7e8c (patch)
tree9923ca30df2d4d63e97cc81a1a70689eb48952a2
parent1f5d5803c2c269bcb5617e7be353fc5de01a09ab (diff)
downloadgsoc2013-evolution-6ba417b085e0e7049f99bfd63c492468a14c7e8c.tar.gz
gsoc2013-evolution-6ba417b085e0e7049f99bfd63c492468a14c7e8c.tar.zst
gsoc2013-evolution-6ba417b085e0e7049f99bfd63c492468a14c7e8c.zip
use g_new0 to allocate the BonoboObjectServant.
* addressbook/backend/pas/pas-card-cursor.c (create_cursor): use g_new0 to allocate the BonoboObjectServant. svn path=/trunk/; revision=2243
-rw-r--r--ChangeLog3
-rw-r--r--addressbook/backend/pas/pas-card-cursor.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 296c7859fc..1bfdc6219f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,9 @@
2000-03-28 Chris Toshok <toshok@laptoph.xtoph.org>
+ * addressbook/backend/pas/pas-card-cursor.c (create_cursor): use
+ g_new0 to allocate the BonoboObjectServant.
+
* addressbook/backend/pas/pas-backend-file.c
(pas_backend_file_build_all_cards_list): remove unnecessary
strdup/free.
diff --git a/addressbook/backend/pas/pas-card-cursor.c b/addressbook/backend/pas/pas-card-cursor.c
index 3f66848332..7def4b436e 100644
--- a/addressbook/backend/pas/pas-card-cursor.c
+++ b/addressbook/backend/pas/pas-card-cursor.c
@@ -184,7 +184,7 @@ create_cursor (BonoboObject *cursor)
POA_Evolution_CardCursor *servant;
CORBA_Environment ev;
- servant = (POA_Evolution_CardCursor *) g_new (BonoboObjectServant, 1);
+ servant = (POA_Evolution_CardCursor *) g_new0 (BonoboObjectServant, 1);
servant->vepv = &cursor_vepv;
CORBA_exception_init (&ev);