mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- dtucker@cvs.openbsd.org 2012/06/22 14:36:33
[sftp.c] Remove unused variable leftover from tab-completion changes. From Steve.McClellan at radisys com, ok markus@
This commit is contained in:
parent
5f58a87768
commit
ea8582931f
@ -7,6 +7,10 @@
|
|||||||
[monitor.c sshconnect2.c]
|
[monitor.c sshconnect2.c]
|
||||||
remove dead code following 'for (;;)' loops.
|
remove dead code following 'for (;;)' loops.
|
||||||
From Steve.McClellan at radisys com, ok markus@
|
From Steve.McClellan at radisys com, ok markus@
|
||||||
|
- dtucker@cvs.openbsd.org 2012/06/22 14:36:33
|
||||||
|
[sftp.c]
|
||||||
|
Remove unused variable leftover from tab-completion changes.
|
||||||
|
From Steve.McClellan at radisys com, ok markus@
|
||||||
|
|
||||||
20120628
|
20120628
|
||||||
- (dtucker) [openbsd-compat/getrrsetbyname-ldns.c] bz #2022: prevent null
|
- (dtucker) [openbsd-compat/getrrsetbyname-ldns.c] bz #2022: prevent null
|
||||||
|
5
sftp.c
5
sftp.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: sftp.c,v 1.135 2012/04/20 03:24:23 djm Exp $ */
|
/* $OpenBSD: sftp.c,v 1.136 2012/06/22 14:36:33 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
||||||
*
|
*
|
||||||
@ -783,7 +783,6 @@ static int
|
|||||||
do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path,
|
do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path,
|
||||||
int lflag)
|
int lflag)
|
||||||
{
|
{
|
||||||
Attrib *a = NULL;
|
|
||||||
char *fname, *lname;
|
char *fname, *lname;
|
||||||
glob_t g;
|
glob_t g;
|
||||||
int err;
|
int err;
|
||||||
@ -829,7 +828,7 @@ do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path,
|
|||||||
colspace = width / columns;
|
colspace = width / columns;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; g.gl_pathv[i] && !interrupted; i++, a = NULL) {
|
for (i = 0; g.gl_pathv[i] && !interrupted; i++) {
|
||||||
fname = path_strip(g.gl_pathv[i], strip_path);
|
fname = path_strip(g.gl_pathv[i], strip_path);
|
||||||
if (lflag & LS_LONG_VIEW) {
|
if (lflag & LS_LONG_VIEW) {
|
||||||
if (g.gl_statv[i] == NULL) {
|
if (g.gl_statv[i] == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user