aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/tools
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2005-07-29 13:46:30 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2005-07-29 13:46:30 +0800
commit46e7ac7b716ae60de5988de2c455b0fb37c51339 (patch)
tree5027f8596a5b0fd0bf9b609b104be1b9a6e41a42 /addressbook/tools
parentdbedd2f1d19e0c8e9b8565a11eefea10233db2af (diff)
downloadgsoc2013-evolution-46e7ac7b716ae60de5988de2c455b0fb37c51339.tar
gsoc2013-evolution-46e7ac7b716ae60de5988de2c455b0fb37c51339.tar.gz
gsoc2013-evolution-46e7ac7b716ae60de5988de2c455b0fb37c51339.tar.bz2
gsoc2013-evolution-46e7ac7b716ae60de5988de2c455b0fb37c51339.tar.lz
gsoc2013-evolution-46e7ac7b716ae60de5988de2c455b0fb37c51339.tar.xz
gsoc2013-evolution-46e7ac7b716ae60de5988de2c455b0fb37c51339.tar.zst
gsoc2013-evolution-46e7ac7b716ae60de5988de2c455b0fb37c51339.zip
Fixes the bug #269870. Commiting Michael Meeks patch.
2005-07-29 Srinivasa Ragavan <sragavan@novell.com> * tools/evolution-addressbook-export-list-cards.c: (output_n_cards_file) Fixes the bug #269870. Commiting Michael Meeks patch. svn path=/trunk/; revision=29928
Diffstat (limited to 'addressbook/tools')
-rw-r--r--addressbook/tools/evolution-addressbook-export-list-cards.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/addressbook/tools/evolution-addressbook-export-list-cards.c b/addressbook/tools/evolution-addressbook-export-list-cards.c
index 88923fd244..758ed42eb2 100644
--- a/addressbook/tools/evolution-addressbook-export-list-cards.c
+++ b/addressbook/tools/evolution-addressbook-export-list-cards.c
@@ -590,7 +590,12 @@ output_n_cards_file (FILE * outputfile, GList *contacts, int size, int begin_no,
g_free (vcard);
}
} else if (format == CARD_FORMAT_CSV) {
- gchar *csv_fields_name = e_contact_csv_get_header_line (pre_defined_fields);
+ gchar *csv_fields_name;
+
+ if (!pre_defined_fields)
+ set_pre_defined_field (&pre_defined_fields);
+
+ csv_fields_name = e_contact_csv_get_header_line (pre_defined_fields);
fprintf (outputfile, "%s\n", csv_fields_name);
g_free (csv_fields_name);