diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-04-28 19:36:39 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-04-28 19:36:39 +0200 |
commit | 7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd (patch) | |
tree | 8e8d37cffd037c8609cc08ce69d3c45aa0f965cd /libssh/sftp.c | |
parent | 20e7ec96ae01d4367a7fbcd87bdbf0fa6496492b (diff) | |
download | libssh-7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd.tar.gz libssh-7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd.tar.xz libssh-7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd.zip |
Fix warnings found with clang analyzer
Diffstat (limited to 'libssh/sftp.c')
-rw-r--r-- | libssh/sftp.c | 6 |
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; |