aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-05-12 03:20:27 +0800
committerChris Lahey <clahey@src.gnome.org>2001-05-12 03:20:27 +0800
commita8b6f2be954e076d4c2cc90b8c39a1823df257e1 (patch)
treee1189c6379a6bee9ba6bde4fbd167c937883db18 /addressbook/backend
parent34b0dc654443bdbecb54d83c05d0aea276bd34c4 (diff)
downloadgsoc2013-evolution-a8b6f2be954e076d4c2cc90b8c39a1823df257e1.tar
gsoc2013-evolution-a8b6f2be954e076d4c2cc90b8c39a1823df257e1.tar.gz
gsoc2013-evolution-a8b6f2be954e076d4c2cc90b8c39a1823df257e1.tar.bz2
gsoc2013-evolution-a8b6f2be954e076d4c2cc90b8c39a1823df257e1.tar.lz
gsoc2013-evolution-a8b6f2be954e076d4c2cc90b8c39a1823df257e1.tar.xz
gsoc2013-evolution-a8b6f2be954e076d4c2cc90b8c39a1823df257e1.tar.zst
gsoc2013-evolution-a8b6f2be954e076d4c2cc90b8c39a1823df257e1.zip
Reordered the includes here. (string_to_dbt): The sleepycat libdb
2001-05-11 Christopher James Lahey <clahey@ximian.com> * 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
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-file.c4
1 files changed, 3 insertions, 1 deletions
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 <stdio.h>
#include <unistd.h>
#include <fcntl.h>
@@ -30,7 +32,6 @@
#include <ebook/e-card-simple.h>
#include <e-util/e-sexp.h>
#include <e-util/e-dbhash.h>
-#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;
}