diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-09-26 14:39:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-26 14:39:49 -0700 |
commit | 5d7f49dc79edf476a0b9266ea5f076b723eca6ec (patch) | |
tree | ebada0e2fbf51d1d92ee45559309fc16cc7a6f1b /help.c | |
parent | 5500095ff4d322001ce81ce4b365086bcd4612aa (diff) | |
parent | d333ac178547946271afc41885d3ea9914500a47 (diff) | |
download | git-5d7f49dc79edf476a0b9266ea5f076b723eca6ec.tar.gz |
Merge branch 'sb/help-unknown-command-sort-fix'
Code cleanup.
* sb/help-unknown-command-sort-fix:
help: fix the size passed to qsort
Diffstat (limited to 'help.c')
-rw-r--r-- | help.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |