REG_NOERROR value is not defined for function regexec.
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Wed, 13 Feb 2013 12:38:54 +0000 (13:38 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 13 Feb 2013 15:24:45 +0000 (16:24 +0100)
[Issue#] N/A
[Problem] Widget installation fails
[Cause] REG_NOERROR value is not defined for function regexec.
[Solution] Fixed.
[Verification] successful installation of any widget.

Change-Id: I41f630e42b2bef67f5c6d14013a667cdfe5961b2

src/jobs/widget_install/job_widget_install.cpp

index 3e80871..a1150f8 100644 (file)
@@ -470,7 +470,7 @@ JobWidgetInstall::ConfigureResult JobWidgetInstall::ConfigureInstallation(
     if ((regexec(&reg,
                  DPL::ToUTF8String(m_installerContext.widgetConfig.tzAppid).
                      c_str(),
-                 static_cast<size_t>(0), NULL, 0) != REG_NOERROR) ||
+                     static_cast<size_t>(0), NULL, 0) == REG_NOMATCH) ||
         (checkTizenPkgIdExist(DPL::ToUTF8String(m_installerContext.widgetConfig
                                                     .tzPkgid)) &&
          result != ConfigureResult::Updated))