diff options
author | Dmitry V. Krivenok <krivenok@orangesystem.ru> | 2009-09-10 13:57:05 +0400 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-09-10 12:35:11 +0200 |
commit | 2a10019f82b9db58d7821ef93febc42b54042c92 (patch) | |
tree | d33b0108b701ef366735a658bc90836498e7861c /libssh | |
parent | df4c62212cc34dd19714751d1eada22fdccfa6da (diff) | |
download | libssh-2a10019f82b9db58d7821ef93febc42b54042c92.tar.gz libssh-2a10019f82b9db58d7821ef93febc42b54042c92.tar.xz libssh-2a10019f82b9db58d7821ef93febc42b54042c92.zip |
Fixed "var is uninitialized" bug.
gcc-4.4.1 reported:
/home/krivenok/dev_builds/libssh/libssh/sftp.c:2700: warning: 'sftp' is used uninitialized in this function
sftp is NULL-initialized now.
Signed-off-by: Dmitry V. Krivenok <krivenok@orangesystem.ru>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/sftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c index 40510ed8..9467f950 100644 --- a/libssh/sftp.c +++ b/libssh/sftp.c @@ -2692,7 +2692,7 @@ 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; + SFTP_SESSION *sftp = NULL; ssh_string ext; ssh_buffer buffer; uint32_t id; |