зеркало из https://github.com/microsoft/git.git
Merge branch 'sb/help-unknown-command-sort-fix'
Code cleanup. * sb/help-unknown-command-sort-fix: help: fix the size passed to qsort
This commit is contained in:
Коммит
5d7f49dc79
2
help.c
2
help.c
|
@ -305,7 +305,7 @@ const char *help_unknown_cmd(const char *cmd)
|
|||
add_cmd_list(&main_cmds, &aliases);
|
||||
add_cmd_list(&main_cmds, &other_cmds);
|
||||
qsort(main_cmds.names, main_cmds.cnt,
|
||||
sizeof(main_cmds.names), cmdname_compare);
|
||||
sizeof(*main_cmds.names), cmdname_compare);
|
||||
uniq(&main_cmds);
|
||||
|
||||
/* This abuses cmdname->len for levenshtein distance */
|
||||
|
|
Загрузка…
Ссылка в новой задаче