diff options
Diffstat (limited to 'meta/recipes-sato/eds/eds-dbus/new-contact-fix.patch')
-rw-r--r-- | meta/recipes-sato/eds/eds-dbus/new-contact-fix.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-sato/eds/eds-dbus/new-contact-fix.patch b/meta/recipes-sato/eds/eds-dbus/new-contact-fix.patch new file mode 100644 index 0000000000..d34cc551f1 --- /dev/null +++ b/meta/recipes-sato/eds/eds-dbus/new-contact-fix.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | When contacts called for the 1st time, adding new contact always failed but | ||
2 | worked after restart. The reason is e-addressbook-factory used to handle | ||
3 | addressbook leads a segmentation fault. Root cause is that factory would create | ||
4 | the data base if not exist, but use it without proper initialization. | ||
5 | |||
6 | This patch fix it. | ||
7 | |||
8 | Signed-off-by: Edwin Zhai <edwin.zhai@intel.com> | ||
9 | Index: git/addressbook/backends/file/e-book-backend-file.c | ||
10 | =================================================================== | ||
11 | --- git.orig/addressbook/backends/file/e-book-backend-file.c 2010-10-20 16:14:31.000000000 +0800 | ||
12 | +++ git/addressbook/backends/file/e-book-backend-file.c 2010-10-22 14:11:47.000000000 +0800 | ||
13 | @@ -1217,6 +1217,8 @@ | ||
14 | EContact *contact = NULL; | ||
15 | EBookBackendSyncStatus status; | ||
16 | |||
17 | + /* Initialize file_db, or else following do_create cause seg fault */ | ||
18 | + bf->priv->file_db = db; | ||
19 | status = do_create (bf, XIMIAN_VCARD, &contact); | ||
20 | if (status != GNOME_Evolution_Addressbook_Success) | ||
21 | g_warning ("Cannot create default contact: %d", status); | ||