From a5e5a06b67662a89d3c0b38a4c622c911c362734 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 14 Jul 2005 10:42:01 +0000 Subject: [PATCH] INTEGRATION: CWS hsqldb5 (1.12.14); FILE MERGED 2005/07/12 07:42:09 oj 1.12.14.1: #i51821# increment pLookup by 2 --- connectivity/source/drivers/hsqldb/HDriver.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx index 597090ff0a9b..e8378b038657 100644 --- a/connectivity/source/drivers/hsqldb/HDriver.cxx +++ b/connectivity/source/drivers/hsqldb/HDriver.cxx @@ -2,9 +2,9 @@ * * $RCSfile: HDriver.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: rt $ $Date: 2005-06-27 08:24:37 $ + * last change: $Author: kz $ $Date: 2005-07-14 11:42:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -733,10 +733,10 @@ namespace connectivity } const sal_Char** pLookup = pTranslations; - for ( ; *pLookup; ++pLookup ) + for ( ; *pLookup; pLookup +=2 ) { sal_Int32 nCompareUntil = 0; - while ( (*pLookup)[ nCompareUntil ] != nCompareTermination ) + while ( (*pLookup)[ nCompareUntil ] != nCompareTermination && (*pLookup)[ nCompareUntil ] != 0 ) ++nCompareUntil; if ( sLocaleString.equalsAsciiL( *pLookup, nCompareUntil ) )