diff options
author | Devashish Sharma <dsharma@src.gnome.org> | 2006-01-16 16:52:59 +0800 |
---|---|---|
committer | Devashish Sharma <dsharma@src.gnome.org> | 2006-01-16 16:52:59 +0800 |
commit | 061f908ce0d9b50542d980a63525b9ce2ed15f26 (patch) | |
tree | 8d56e65905c8cc0a2ddbf1bbe8b45bac652c35c0 /addressbook | |
parent | 2d7c8116e90aee9cc246a840bef666a571af8813 (diff) | |
download | gsoc2013-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.c | 16 |
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) { |