aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libssh/sftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c
index 9467f950..5265eb5a 100644
--- a/libssh/sftp.c
+++ b/libssh/sftp.c
@@ -2692,12 +2692,12 @@ SFTP_STATVFS *sftp_statvfs(SFTP_SESSION *sftp, const char *path) {
SFTP_STATVFS *sftp_fstatvfs(SFTP_FILE *file) {
STATUS_MESSAGE *status = NULL;
SFTP_MESSAGE *msg = NULL;
- SFTP_SESSION *sftp = NULL;
+ SFTP_SESSION *sftp;
ssh_string ext;
ssh_buffer buffer;
uint32_t id;
- if (sftp == NULL || file == NULL) {
+ if (file == NULL) {
return NULL;
}
sftp = file->sftp;