aboutsummaryrefslogtreecommitdiff
path: root/libssh/sftp.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-09-10 18:57:58 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-10 18:57:58 +0200
commit8ef62cf784b34fb6306f160f46fa020f4171eef1 (patch)
tree542e09389cf0e86ef72baec6fcfe99c6c42ae36e /libssh/sftp.c
parent8051ab044c6293a38e28761357644d564e3874ad (diff)
downloadlibssh-8ef62cf784b34fb6306f160f46fa020f4171eef1.tar.gz
libssh-8ef62cf784b34fb6306f160f46fa020f4171eef1.tar.xz
libssh-8ef62cf784b34fb6306f160f46fa020f4171eef1.zip
Fixed fstatvfs function.
Diffstat (limited to 'libssh/sftp.c')
-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;