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 381203a22dff98ef1f9aab25e7c843cbbdb5b240..35f1d0031113401535ef8d4e2a8e6c3bb6ca64df 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++) {