OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var.c versions 1.81 and 1.82
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var.c 1.81 -> 1.82

--- var.c        2002/03/06 10:18:19     1.81
+++ var.c        2002/03/06 10:33:15     1.82
@@ -930,8 +930,8 @@
                 regexec_flag = 0;
             else
                 regexec_flag = REG_NOTBOL;
-            if (regexec(&preg, p, sizeof(pmatch) / sizeof(regmatch_t), pmatch, regexec_flag) == REG_NOMATCH ||
-                p + pmatch[0].rm_so == mydata.end) {
+            rc = regexec(&preg, p, sizeof(pmatch) / sizeof(regmatch_t), pmatch, regexec_flag);
+            if (rc != 0 || p + pmatch[0].rm_so == mydata.end) {
                 tokenbuf_append(&tmp, p, mydata.end - p);
                 break;
             } else {

CVSTrac 2.0.1