lineedit: small readability improvement (same code)
authorDenys Vlasenko <dvlasenk@redhat.com>
Thu, 2 Sep 2010 10:44:39 +0000 (12:44 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Thu, 2 Sep 2010 10:44:39 +0000 (12:44 +0200)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
libbb/lineedit.c

index 381203a..35f1d00 100644 (file)
@@ -736,7 +736,7 @@ static void exe_n_cwd_tab_completion(char *command, int type)
                if (dirbuf[0] == '~')   /* ~/... or ~user/... */
                        dirbuf = username_path_completion(dirbuf);
 #endif
-               paths[0] = dirbuf;
+               path1[0] = dirbuf;
        }
 
        for (i = 0; i < npaths; i++) {