diff options
author | Suman Manjunath <msuman@src.gnome.org> | 2008-01-07 00:43:58 +0800 |
---|---|---|
committer | Suman Manjunath <msuman@src.gnome.org> | 2008-01-07 00:43:58 +0800 |
commit | 82f7125f45269be8d2cded86d8c7fe37bd0364dc (patch) | |
tree | fbaae0c1b3a295879d0e7d21205dbe00c3d3d0cb /addressbook | |
parent | 07cd05990fb01fc9021c23f0a29b3d49f6271ecd (diff) | |
download | gsoc2013-evolution-82f7125f45269be8d2cded86d8c7fe37bd0364dc.tar.gz gsoc2013-evolution-82f7125f45269be8d2cded86d8c7fe37bd0364dc.tar.zst gsoc2013-evolution-82f7125f45269be8d2cded86d8c7fe37bd0364dc.zip |
Patch from Christian Krause <chkr@plauener.de>: Fix for bug #506772 (Not-NULL check for a string array before finding its length), handle NULL filename strings before backup/restore/check operations in the backup-restore plugin.
svn path=/trunk/; revision=34768
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/tools/evolution-addressbook-export.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 3abca21cf5..f3bf0ae114 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2008-01-06 Christian Krause <chkr@plauener.de> + + ** Fix for bug #506772 + + * tools/evolution-addressbook-export.c: (main): Not-NULL check for a + string array before finding its length. + 2007-12-11 Sankar P <psankar@novell.com> ** Fix for bug #501969 diff --git a/addressbook/tools/evolution-addressbook-export.c b/addressbook/tools/evolution-addressbook-export.c index 92f05664d1..ec05a1da63 100644 --- a/addressbook/tools/evolution-addressbook-export.c +++ b/addressbook/tools/evolution-addressbook-export.c @@ -92,7 +92,7 @@ main (int argc, char **argv) GNOME_PARAM_NONE); /* Parsing Parameter */ - if (g_strv_length (opt_remaining) > 0) + if (opt_remaining && g_strv_length (opt_remaining) > 0) opt_addressbook_folder_uri = g_strdup (opt_remaining[0]); if (opt_list_folders_mode != FALSE) { |