Commit 83a8b0e9 authored by Monty's avatar Monty

Fixed compiler warning

parent 22b4f469
...@@ -3030,7 +3030,7 @@ xb_validate_name( ...@@ -3030,7 +3030,7 @@ xb_validate_name(
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
p = strpbrk(name, "/\\~"); 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); msg("mariabackup: name `%s` is not valid.\n", name);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment