diff options
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp.c,v 1.135 2012/04/20 03:24:23 djm Exp $ */ | 1 | /* $OpenBSD: sftp.c,v 1.136 2012/06/22 14:36:33 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -783,7 +783,6 @@ static int | |||
783 | do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path, | 783 | do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path, |
784 | int lflag) | 784 | int lflag) |
785 | { | 785 | { |
786 | Attrib *a = NULL; | ||
787 | char *fname, *lname; | 786 | char *fname, *lname; |
788 | glob_t g; | 787 | glob_t g; |
789 | int err; | 788 | int err; |
@@ -829,7 +828,7 @@ do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path, | |||
829 | colspace = width / columns; | 828 | colspace = width / columns; |
830 | } | 829 | } |
831 | 830 | ||
832 | for (i = 0; g.gl_pathv[i] && !interrupted; i++, a = NULL) { | 831 | for (i = 0; g.gl_pathv[i] && !interrupted; i++) { |
833 | fname = path_strip(g.gl_pathv[i], strip_path); | 832 | fname = path_strip(g.gl_pathv[i], strip_path); |
834 | if (lflag & LS_LONG_VIEW) { | 833 | if (lflag & LS_LONG_VIEW) { |
835 | if (g.gl_statv[i] == NULL) { | 834 | if (g.gl_statv[i] == NULL) { |