From 2a10019f82b9db58d7821ef93febc42b54042c92 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Krivenok" Date: Thu, 10 Sep 2009 13:57:05 +0400 Subject: 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 Signed-off-by: Andreas Schneider --- libssh/sftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3