don't set j to 0, since it never read again
authorLove Hörnquist Åstrand <lha@kth.se>
Sun, 22 Mar 2009 17:24:15 +0000 (17:24 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Sun, 22 Mar 2009 17:24:15 +0000 (17:24 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24924 ec53bebd-3082-4978-b11e-865c3cabbd6b

appl/ftp/ftpd/ls.c

index 36ee31fce37a4635526b69eeb6cc51d1e71e4978..2cb81efbf40b6aa83e695e4dc45b6067c4d71579 100644 (file)
@@ -681,7 +681,7 @@ list_files(FILE *out, const char **files, int n_files, int flags)
                sec_fprintf2(out, "\r\n");
        } else {
            int skip = (num_files + columns - 1) / columns;
-           j = 0;
+
            for(i = 0; i < skip; i++) {
                for(j = i; j < n_files;) {
                    while(j < n_files && fi[j].filename == NULL)