aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/lineedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index b942f540a..625884adf 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -825,8 +825,8 @@ static unsigned path_parse(char ***p)
825 res[npth++] = tmp; 825 res[npth++] = tmp;
826 } 826 }
827 /* special case: "match subdirectories of the current directory" */ 827 /* special case: "match subdirectories of the current directory" */
828 /*res[npth++] = NULL; - filled by xzalloc() */ 828 /*res[npth] = NULL; - filled by xzalloc() */
829 return npth; 829 return npth + 1;
830} 830}
831 831
832/* Complete command, directory or file name. 832/* Complete command, directory or file name.