summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2014-09-01 14:46:20 +0200
committerSergei Golubchik <serg@mariadb.org>2014-10-10 22:27:42 +0200
commit15623fd7bb309cf472fddc806793f88df2caa1cc (patch)
tree508cd5e3acd6f920da9e9c6e4c37d71fe4ad70a0 /client
parenta7b2c95a40101f218d6ed608e8703c2ff761ea47 (diff)
downloadmariadb-git-15623fd7bb309cf472fddc806793f88df2caa1cc.tar.gz
mysqltest bug: replace_regex /^foo/bar/ didn't work
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index ef339d17a42..287fd5e3764 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -10200,7 +10200,7 @@ int reg_replace(char** buf_p, int* buf_len_p, char *pattern,
{
/* find the match */
err_code= regexec(&r,str_p, r.re_nsub+1, subs,
- (str_p == string) ? REG_NOTBOL : 0);
+ (str_p == string) ? 0 : REG_NOTBOL);
/* if regular expression error (eg. bad syntax, or out of memory) */
if (err_code && err_code != REG_NOMATCH)