[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/kjs
From: Luciano Montanaro <mikelima () cirulla ! net>
Date: 2005-08-30 18:00:07
Message-ID: 1125424807.675705.9328.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 455153 by montanaro:
Backport from head, no need to call regcomp twice
M +1 -1 regexp.cpp
--- branches/KDE/3.5/kdelibs/kjs/regexp.cpp #455152:455153
@@ -115,7 +115,7 @@
// Note: the Global flag is already handled by RegExpProtoFunc::execute
int errorCode = regcomp(&preg, intern.ascii(), regflags);
- if (regcomp(&preg, intern.ascii(), regflags) != 0) {
+ if (errorCode != 0) {
#ifndef NDEBUG
char errorMessage[80];
regerror(errorCode, &preg, errorMessage, sizeof errorMessage);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic