aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/cmdedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index c4cb9d9c4..edfa01613 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -621,7 +621,7 @@ static char **username_tab_completion(char *ud, int *num_matches)
621 /* Null usernames should result in all users as possible completions. */ 621 /* Null usernames should result in all users as possible completions. */
622 if ( /*!userlen || */ !strncmp(ud, entry->pw_name, userlen)) { 622 if ( /*!userlen || */ !strncmp(ud, entry->pw_name, userlen)) {
623 623
624 bb_xasprintf(&temp, "~%s/", entry->pw_name); 624 temp = bb_xasprintf("~%s/", entry->pw_name);
625 matches = xrealloc(matches, (nm + 1) * sizeof(char *)); 625 matches = xrealloc(matches, (nm + 1) * sizeof(char *));
626 626
627 matches[nm++] = temp; 627 matches[nm++] = temp;