Commit 824cf80f by Vicent Martí

Merge pull request #1652 from yorah/fix/build-warnings

Fix/build warnings
parents 4878ea45 519072c9
......@@ -320,7 +320,7 @@ int git_futils_mkdir(
min_root_len = git_path_root(make_path.ptr);
if (root < min_root_len)
root = min_root_len;
while (make_path.ptr[root] == '/')
while (root >= 0 && make_path.ptr[root] == '/')
++root;
/* clip root to make_path length */
......
......@@ -825,6 +825,8 @@ int test_names_expected(const git_diff_delta *delta, float progress, void *p)
{
struct rename_expected *expected = p;
GIT_UNUSED(progress);
cl_assert(expected->idx < expected->len);
cl_assert_equal_i(delta->status, GIT_DELTA_RENAMED);
......
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