[evolution-data-server] Don't migrate sources with empty attributes
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Don't migrate sources with empty attributes
- Date: Mon, 8 Oct 2012 20:55:09 +0000 (UTC)
commit 01beecb31bca3cd80dcd41dbc8ecfc363f7393e3
Author: Dan VrÃtil <dvratil redhat com>
Date: Mon Oct 8 21:48:44 2012 +0200
Don't migrate sources with empty attributes
.../evolution-source-registry-migrate-sources.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/services/evolution-source-registry/evolution-source-registry-migrate-sources.c b/services/evolution-source-registry/evolution-source-registry-migrate-sources.c
index e6866ec..3aee9d2 100644
--- a/services/evolution-source-registry/evolution-source-registry-migrate-sources.c
+++ b/services/evolution-source-registry/evolution-source-registry-migrate-sources.c
@@ -270,6 +270,11 @@ migrate_keyring_entry (const gchar *uid,
GList *found_list = NULL;
gchar *display_name;
+ /* Don't migrate entries with empty attributes */
+ if (!user || !server || !protocol) {
+ return;
+ }
+
/* This is a best-effort routine, so we don't really care about
* errors. We leave the old keyring entry in place since it may
* be reused for address book or calendar migration. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]