summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-09-26 14:39:46 -0700
committerJunio C Hamano <gitster@pobox.com>2014-09-26 14:39:49 -0700
commit5d7f49dc79edf476a0b9266ea5f076b723eca6ec (patch)
treeebada0e2fbf51d1d92ee45559309fc16cc7a6f1b /help.c
parent5500095ff4d322001ce81ce4b365086bcd4612aa (diff)
parentd333ac178547946271afc41885d3ea9914500a47 (diff)
downloadgit-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/help.c b/help.c
index 7af65e205e..2072a873e2 100644
--- a/help.c
+++ b/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 */