From a8b6f2be954e076d4c2cc90b8c39a1823df257e1 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 11 May 2001 19:20:27 +0000 Subject: Reordered the includes here. (string_to_dbt): The sleepycat libdb 2001-05-11 Christopher James Lahey * backend/pas/pas-backend-file.c: Reordered the includes here. (string_to_dbt): The sleepycat libdb documentation suggests memseting the DBT to 0 so we do that here. * gui/widgets/e-minicard-view-model.c (addressbook_height): Skip the E_CARD_SIMPLE_FIELD_FAMILY_NAME field. * gui/widgets/e-minicard.c (remodel): Skip the E_CARD_SIMPLE_FIELD_FAMILY_NAME field. svn path=/trunk/; revision=9764 --- addressbook/backend/pas/pas-backend-file.c | 4 +++- 1 file changed, 3 insertions(+), 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 9a088cae75..c4d1e0792f 100644 --- a/addressbook/backend/pas/pas-backend-file.c +++ b/addressbook/backend/pas/pas-backend-file.c @@ -7,6 +7,8 @@ */ #include "config.h" +#include "pas-backend-file.h" + #include #include #include @@ -30,7 +32,6 @@ #include #include #include -#include "pas-backend-file.h" #include "pas-book.h" #include "pas-card-cursor.h" @@ -211,6 +212,7 @@ view_destroy(GtkObject *object, gpointer data) static void string_to_dbt(const char *str, DBT *dbt) { + memset (dbt, 0, sizeof (*dbt)); dbt->data = (void*)str; dbt->size = strlen (str) + 1; } -- cgit v1.2.3