aboutsummaryrefslogtreecommitdiff
path: root/libssh/sftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/sftp.c')
-rw-r--r--libssh/sftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c
index 82c00341..ca6d64e2 100644
--- a/libssh/sftp.c
+++ b/libssh/sftp.c
@@ -2400,9 +2400,9 @@ int sftp_rename(sftp_session sftp, const char *original, const char *newname) {
/* Code written by Nick */
/* Set file attributes on a file, directory or symbolic link. */
int sftp_setstat(sftp_session sftp, const char *file, sftp_attributes attr) {
- uint32_t id = sftp_get_new_id(sftp);
- ssh_buffer buffer = buffer_new();
- ssh_string path = string_from_char(file);
+ uint32_t id;
+ ssh_buffer buffer;
+ ssh_string path;
sftp_message msg = NULL;
sftp_status_message status = NULL;