aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-11-23 11:38:19 +0800
committerChris Toshok <toshok@src.gnome.org>2002-11-23 11:38:19 +0800
commit2e37a8a2bf849f721fcdbcd947bdfcc829382111 (patch)
treed4abeb8caba2250dab0937d1e1f723a53ad71dfe /addressbook/backend/ebook
parent94ec3365b69db880fe6ef905956b805c097b667b (diff)
downloadgsoc2013-evolution-2e37a8a2bf849f721fcdbcd947bdfcc829382111.tar.gz
gsoc2013-evolution-2e37a8a2bf849f721fcdbcd947bdfcc829382111.tar.zst
gsoc2013-evolution-2e37a8a2bf849f721fcdbcd947bdfcc829382111.zip
[ roll forward Sean.Gao@sun.com's fix for #16870 from the 1.2 branch ]
2002-11-22 Chris Toshok <toshok@ximian.com> [ roll forward Sean.Gao@sun.com's fix for #16870 from the 1.2 branch ] * backend/ebook/evolution-ldif-importer.c (getNextLDIFEntry): check for both LR and CRLF as empty line markers. svn path=/trunk/; revision=18899
Diffstat (limited to 'addressbook/backend/ebook')
-rw-r--r--addressbook/backend/ebook/evolution-ldif-importer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addressbook/backend/ebook/evolution-ldif-importer.c b/addressbook/backend/ebook/evolution-ldif-importer.c
index 8ec5b631ab..e0a85e685c 100644
--- a/addressbook/backend/ebook/evolution-ldif-importer.c
+++ b/addressbook/backend/ebook/evolution-ldif-importer.c
@@ -304,7 +304,7 @@ getNextLDIFEntry( FILE *f )
while (!feof (f)) {
if (!fgets (line, sizeof(line), f))
break;
- if (line[0] == '\n')
+ if (line[0] == '\n' || (line[0] == '\r' && line[1] == '\n'))
break;
str = g_string_append (str, line);
}