diff options
author | Devashish Sharma <dsharma@src.gnome.org> | 2006-01-16 17:57:21 +0800 |
---|---|---|
committer | Devashish Sharma <dsharma@src.gnome.org> | 2006-01-16 17:57:21 +0800 |
commit | 1d91ddd072c17a991129d6f296591f48a378ba0c (patch) | |
tree | c0d525e2bad3755db7cf7daaa948a8f5e6698a84 /addressbook | |
parent | 061f908ce0d9b50542d980a63525b9ce2ed15f26 (diff) | |
download | gsoc2013-evolution-1d91ddd072c17a991129d6f296591f48a378ba0c.tar.gz gsoc2013-evolution-1d91ddd072c17a991129d6f296591f48a378ba0c.tar.zst gsoc2013-evolution-1d91ddd072c17a991129d6f296591f48a378ba0c.zip |
Small change to csv importer.
svn path=/trunk/; revision=31207
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/importers/evolution-csv-importer.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/addressbook/importers/evolution-csv-importer.c b/addressbook/importers/evolution-csv-importer.c index 034b1b3601..09627532a4 100644 --- a/addressbook/importers/evolution-csv-importer.c +++ b/addressbook/importers/evolution-csv-importer.c @@ -469,16 +469,12 @@ getNextCSVEntry(CSVImporter *gci, FILE *f) { GString *str; char *buf; - while (!feof (f)) { - if(!fgets(line, sizeof(line),f)) - break; - } + if(!fgets(line, sizeof(line),f)) + return NULL; if(gci->count == 0 && importer != MOZILLA_IMPORTER) { - while (!feof (f) ) { - if(!fgets(line, sizeof(line),f)) - break; - } + if(!fgets(line, sizeof(line),f)) + return NULL; gci->count ++; } |