Skip to content
/ git Public
forked from git/git

Commit

Permalink
Merge branch 'sb/help-unknown-command-sort-fix'
Browse files Browse the repository at this point in the history
Code cleanup.

* sb/help-unknown-command-sort-fix:
  help: fix the size passed to qsort
  • Loading branch information
gitster committed Sep 26, 2014
2 parents 5500095 + d333ac1 commit 5d7f49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion help.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5d7f49d

Please sign in to comment.