diff options
author | Monty <monty@mariadb.org> | 2018-01-02 20:42:42 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-01-03 01:01:53 +0200 |
commit | 83a8b0e9d3cbc43d2a574db31f593f299200dc75 (patch) | |
tree | 7136cf073cc31325d7e5899d7283ecd99593c640 /extra/mariabackup/xtrabackup.cc | |
parent | 22b4f469caefeb255aaaa18956afcbae210a1fad (diff) | |
download | mariadb-git-83a8b0e9d3cbc43d2a574db31f593f299200dc75.tar.gz |
Fixed compiler warning
Diffstat (limited to 'extra/mariabackup/xtrabackup.cc')
-rw-r--r-- | extra/mariabackup/xtrabackup.cc | 2 |
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); } |