From cf45db7178f7bb17eb931ad7ebf28bcf3aca8658 Mon Sep 17 00:00:00 2001 From: Alexandre Savard <alexandre.savard@savoirfairelinux.com> Date: Fri, 20 Jul 2012 15:46:51 -0400 Subject: [PATCH] #13726: Fix jenkins error for sdes test --- daemon/src/sip/pattern.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/src/sip/pattern.cpp b/daemon/src/sip/pattern.cpp index 922530b8c3..fdd0d50027 100644 --- a/daemon/src/sip/pattern.cpp +++ b/daemon/src/sip/pattern.cpp @@ -36,7 +36,7 @@ namespace sfl { Pattern::Pattern(const std::string& pattern, const std::string& options) : pattern_(pattern), subject_(), - // re_(NULL), + re_(NULL), ovector_(), count_(0), options_(0), @@ -81,7 +81,7 @@ void Pattern::compile() int offset; const char * error; - // re_ = pcre_compile(pattern_.c_str(), 0, &error, &offset, NULL); + re_ = pcre_compile(pattern_.c_str(), 0, &error, &offset, NULL); if (re_ == NULL) { std::string offsetStr; @@ -106,7 +106,7 @@ void Pattern::compile() unsigned int Pattern::getCaptureGroupCount() { int captureCount = 0; - // pcre_fullinfo(re_, NULL, PCRE_INFO_CAPTURECOUNT, &captureCount); + pcre_fullinfo(re_, NULL, PCRE_INFO_CAPTURECOUNT, &captureCount); return captureCount; } @@ -114,7 +114,7 @@ std::vector<std::string> Pattern::groups() { const char ** stringList; - // pcre_get_substring_list(subject_.c_str(), &ovector_[0], count_, &stringList); + pcre_get_substring_list(subject_.c_str(), &ovector_[0], count_, &stringList); std::vector<std::string> matchedSubstrings; for (int i = 1; stringList[i] != NULL; i++) matchedSubstrings.push_back(stringList[i]); -- GitLab