summaryrefslogtreecommitdiff
path: root/extra/mariabackup/xtrabackup.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-01-02 20:42:42 +0200
committerMonty <monty@mariadb.org>2018-01-03 01:01:53 +0200
commit83a8b0e9d3cbc43d2a574db31f593f299200dc75 (patch)
tree7136cf073cc31325d7e5899d7283ecd99593c640 /extra/mariabackup/xtrabackup.cc
parent22b4f469caefeb255aaaa18956afcbae210a1fad (diff)
downloadmariadb-git-83a8b0e9d3cbc43d2a574db31f593f299200dc75.tar.gz
Fixed compiler warning
Diffstat (limited to 'extra/mariabackup/xtrabackup.cc')
-rw-r--r--extra/mariabackup/xtrabackup.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc
index 04e33fa389e..375d8845a2a 100644
--- a/extra/mariabackup/xtrabackup.cc
+++ b/extra/mariabackup/xtrabackup.cc
@@ -3030,7 +3030,7 @@ xb_validate_name(
exit(EXIT_FAILURE);
}
p = strpbrk(name, "/\\~");
- if (p && p - name < NAME_LEN) {
+ if (p && (uint) (p - name) < NAME_LEN) {
msg("mariabackup: name `%s` is not valid.\n", name);
exit(EXIT_FAILURE);
}