1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-23 01:22:37 +03:00

sftp_readdir: avoid shadowing

This commit is contained in:
Daniel Stenberg
2010-11-10 13:05:08 +01:00
parent bef0ce5392
commit 1964ccb557

View File

@@ -1240,8 +1240,10 @@ static int sftp_readdir(LIBSSH2_SFTP_HANDLE *handle, char *buffer,
*/ */
LIBSSH2_SFTP_ATTRIBUTES attrs_dummy; LIBSSH2_SFTP_ATTRIBUTES attrs_dummy;
size_t real_longentry_len; size_t real_longentry_len;
unsigned char *s = (unsigned char *) handle->u.dir.next_name; size_t real_filename_len;
size_t real_filename_len = _libssh2_ntohu32(s);
s = (unsigned char *) handle->u.dir.next_name;
real_filename_len = _libssh2_ntohu32(s);
s += 4; s += 4;