summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2007-05-22 08:36:48 +0000
committerpixel <pixel>2007-05-22 08:36:48 +0000
commit6938bdc415e924b7ef404e4ed1781ae782bfa0c0 (patch)
tree075ef059d44725e9eb64c2b926ab85174f27fc91
parente274e4ad3f7a5092ba0217986dabd5afcd9ace02 (diff)
Fixing regex's constructor-per-copy.
-rw-r--r--lib/Regex.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Regex.cc b/lib/Regex.cc
index cedd72b..e7109e5 100644
--- a/lib/Regex.cc
+++ b/lib/Regex.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Regex.cc,v 1.13 2007-05-21 16:41:31 pixel Exp $ */
+/* $Id: Regex.cc,v 1.14 2007-05-22 08:36:48 pixel Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -40,7 +40,7 @@ Regex::Regex(const String & regex, int acflags, int aeflags) throw (GeneralExcep
}
}
-Regex::Regex(const Regex & regex) : pattern(Base::strdup(pattern)) {
+Regex::Regex(const Regex & regex) : pattern(Base::strdup(regex.pattern)) {
int r;
if ((r = regcomp(&preg, pattern, cflags | REG_NOSUB))) {