aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
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;
}