Fixed compiler warning
This commit is contained in:
parent
22b4f469ca
commit
83a8b0e9d3
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user