diff options
author | Monty <monty@mariadb.org> | 2019-08-08 20:05:40 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2019-08-08 23:08:23 +0300 |
commit | dbac2039e81f6d371acdacfb65eba10e395bb9a2 (patch) | |
tree | 268c85900d5a4bed5f8dd881019ee7e3833b4f98 /pcre | |
parent | 5fa2eb6f3d8210ce73d18e518108f32c29b11d63 (diff) | |
download | mariadb-git-dbac2039e81f6d371acdacfb65eba10e395bb9a2.tar.gz |
Fixed some errors & warnings found by clang
- pcretest.c could use macro with side effect
- maria_chk could access freed memory
- Initialized some variables that could be accessed uninitalized
- Fixed compiler warning in my_atomic-t.c
Diffstat (limited to 'pcre')
-rw-r--r-- | pcre/pcretest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pcre/pcretest.c b/pcre/pcretest.c index a0e65ed9808..dcf1e2c6760 100644 --- a/pcre/pcretest.c +++ b/pcre/pcretest.c @@ -2864,7 +2864,8 @@ strncmpic(pcre_uint8 *s, pcre_uint8 *t, int n) { while (n--) { - int c = tolower(*s++) - tolower(*t++); + int c = tolower(*s) - tolower(*t); + s++; t++; if (c) return c; } return 0; |