aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorDevashish Sharma <dsharma@src.gnome.org>2006-01-16 17:57:21 +0800
committerDevashish Sharma <dsharma@src.gnome.org>2006-01-16 17:57:21 +0800
commit1d91ddd072c17a991129d6f296591f48a378ba0c (patch)
treec0d525e2bad3755db7cf7daaa948a8f5e6698a84 /addressbook
parent061f908ce0d9b50542d980a63525b9ce2ed15f26 (diff)
downloadgsoc2013-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.c12
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 ++;
}