aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorDevashish Sharma <dsharma@src.gnome.org>2006-01-16 16:52:59 +0800
committerDevashish Sharma <dsharma@src.gnome.org>2006-01-16 16:52:59 +0800
commit061f908ce0d9b50542d980a63525b9ce2ed15f26 (patch)
tree8d56e65905c8cc0a2ddbf1bbe8b45bac652c35c0 /addressbook
parent2d7c8116e90aee9cc246a840bef666a571af8813 (diff)
downloadgsoc2013-evolution-061f908ce0d9b50542d980a63525b9ce2ed15f26.tar
gsoc2013-evolution-061f908ce0d9b50542d980a63525b9ce2ed15f26.tar.gz
gsoc2013-evolution-061f908ce0d9b50542d980a63525b9ce2ed15f26.tar.bz2
gsoc2013-evolution-061f908ce0d9b50542d980a63525b9ce2ed15f26.tar.lz
gsoc2013-evolution-061f908ce0d9b50542d980a63525b9ce2ed15f26.tar.xz
gsoc2013-evolution-061f908ce0d9b50542d980a63525b9ce2ed15f26.tar.zst
gsoc2013-evolution-061f908ce0d9b50542d980a63525b9ce2ed15f26.zip
*** empty log message ***
svn path=/trunk/; revision=31206
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/importers/evolution-csv-importer.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/addressbook/importers/evolution-csv-importer.c b/addressbook/importers/evolution-csv-importer.c
index 1790c2b65c..034b1b3601 100644
--- a/addressbook/importers/evolution-csv-importer.c
+++ b/addressbook/importers/evolution-csv-importer.c
@@ -469,20 +469,20 @@ getNextCSVEntry(CSVImporter *gci, FILE *f) {
GString *str;
char *buf;
- str = g_string_new("");
- if(!fgets(line, sizeof(line),f)) {
- g_string_free(str, TRUE);
- break;
+ while (!feof (f)) {
+ if(!fgets(line, sizeof(line),f))
+ break;
}
if(gci->count == 0 && importer != MOZILLA_IMPORTER) {
- if(!fgets(line, sizeof(line),f)) {
- g_string_free(str, TRUE);
- break;
+ while (!feof (f) ) {
+ if(!fgets(line, sizeof(line),f))
+ break;
}
gci->count ++;
}
-
+
+ str = g_string_new("");
str = g_string_append (str, line);
if(strlen(str->str) == 0) {