Merge branch 'ab/clang-lints' into maint-1.7.7
* ab/clang-lints: cast variable in call to free() in builtin/diff.c and submodule.c apply: get rid of useless x < 0 comparison on a size_t type
This commit is contained in:
@ -391,7 +391,7 @@ static void commit_need_pushing(struct commit *commit, struct commit_list *paren
|
||||
rev.diffopt.format_callback_data = needs_pushing;
|
||||
diff_tree_combined(commit->object.sha1, parents, n, 1, &rev);
|
||||
|
||||
free(parents);
|
||||
free((void *)parents);
|
||||
}
|
||||
|
||||
int check_submodule_needs_pushing(unsigned char new_sha1[20], const char *remotes_name)
|
||||
|
Reference in New Issue
Block a user