git.samba.org
/
metze
/
heimdal
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54d8d85
)
don't set j to 0, since it never read again
author
Love Hörnquist Åstrand
<lha@kth.se>
Sun, 22 Mar 2009 17:24:15 +0000
(17:24 +0000)
committer
Love 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
patch
|
blob
|
history
diff --git
a/appl/ftp/ftpd/ls.c
b/appl/ftp/ftpd/ls.c
index 36ee31fce37a4635526b69eeb6cc51d1e71e4978..2cb81efbf40b6aa83e695e4dc45b6067c4d71579 100644
(file)
--- a/
appl/ftp/ftpd/ls.c
+++ b/
appl/ftp/ftpd/ls.c
@@
-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)