Mailinglist Archive: zypp-commit (731 mails)
| < Previous | Next > |
[zypp-commit] r6590 - /trunk/libzypp/zypp/base/Regex.cc
- From: dmacvicar@xxxxxxxxxxxxxxxx
- Date: Fri, 10 Aug 2007 14:08:30 -0000
- Message-id: <20070810140830.D8182CE1FD@xxxxxxxxxxxxxxxx>
Author: dmacvicar
Date: Fri Aug 10 16:08:30 2007
New Revision: 6590
URL: http://svn.opensuse.org/viewcvs/zypp?rev=6590&view=rev
Log:
actually pass the flags to the regcomp() function :)
Modified:
trunk/libzypp/zypp/base/Regex.cc
Modified: trunk/libzypp/zypp/base/Regex.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/base/Regex.cc?rev=6590&r1=6589&r2=6590&view=diff
==============================================================================
--- trunk/libzypp/zypp/base/Regex.cc (original)
+++ trunk/libzypp/zypp/base/Regex.cc Fri Aug 10 16:08:30 2007
@@ -21,7 +21,7 @@
regex::regex(const std::string& str, int flags)
{
m_valid = true;
- if (regcomp(&m_preg, str.c_str(), REG_EXTENDED))
+ if (regcomp(&m_preg, str.c_str(), REG_EXTENDED | flags))
m_valid = false;
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
Date: Fri Aug 10 16:08:30 2007
New Revision: 6590
URL: http://svn.opensuse.org/viewcvs/zypp?rev=6590&view=rev
Log:
actually pass the flags to the regcomp() function :)
Modified:
trunk/libzypp/zypp/base/Regex.cc
Modified: trunk/libzypp/zypp/base/Regex.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/base/Regex.cc?rev=6590&r1=6589&r2=6590&view=diff
==============================================================================
--- trunk/libzypp/zypp/base/Regex.cc (original)
+++ trunk/libzypp/zypp/base/Regex.cc Fri Aug 10 16:08:30 2007
@@ -21,7 +21,7 @@
regex::regex(const std::string& str, int flags)
{
m_valid = true;
- if (regcomp(&m_preg, str.c_str(), REG_EXTENDED))
+ if (regcomp(&m_preg, str.c_str(), REG_EXTENDED | flags))
m_valid = false;
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
| < Previous | Next > |