aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 8fe8e058..19600fcc 100644
--- a/main.c
+++ b/main.c
@@ -162,6 +162,8 @@ int main(int argc, char *argv[])
{
if (CFG_TOYBOX_I18N) setlocale(LC_ALL, "");
+ toys.toycount = ARRAY_LEN(toy_list);
+
if (CFG_TOYBOX) {
// Trim path off of command name
*argv = basename(*argv);