From 302c05b4af296d2a412387717a47876aa6af290a Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 15 Nov 2000 19:55:39 +0000 Subject: Initialize destination struct with '0's. 2000-11-15 JP Rosevear * backend/pas/pas-backend-file.c (pas_backend_file_book_view_copy): Initialize destination struct with '0's. svn path=/trunk/; revision=6584 --- addressbook/backend/pas/pas-backend-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/backend') diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c index ee82c94b2d..299edaf52d 100644 --- a/addressbook/backend/pas/pas-backend-file.c +++ b/addressbook/backend/pas/pas-backend-file.c @@ -83,7 +83,7 @@ static PASBackendFileBookView * pas_backend_file_book_view_copy(const PASBackendFileBookView *book_view, void *closure) { PASBackendFileBookView *new_book_view; - new_book_view = g_new(PASBackendFileBookView, 1); + new_book_view = g_new0 (PASBackendFileBookView, 1); new_book_view->book_view = book_view->book_view; new_book_view->search = g_strdup(book_view->search); -- cgit v1.2.3