From 6db0a81d8b37528604fc38a1e1d90781974293a9 Mon Sep 17 00:00:00 2001 From: "rjc%netscape.com" Date: Wed, 24 Mar 1999 02:19:02 +0000 Subject: [PATCH] Make sure history line isn't an empty line. --- rdf/datasource/src/nsHistoryDataSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdf/datasource/src/nsHistoryDataSource.cpp b/rdf/datasource/src/nsHistoryDataSource.cpp index 1bff172365a1..faaa8d1beab9 100644 --- a/rdf/datasource/src/nsHistoryDataSource.cpp +++ b/rdf/datasource/src/nsHistoryDataSource.cpp @@ -597,7 +597,7 @@ nsHistoryDataSource::ReadOneHistoryFile(nsInputFileStream& aStream, nsFileSpec f PRTime fileTime = LL_ZERO; char *aLine = buffer.ToNewCString(); - if (aLine) + if (aLine && PL_strlen(aLine)>0) { url = aLine; title = strchr(aLine, '\t') + 1;