aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2015-12-17 14:55:52 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2015-12-17 15:01:05 +0100
commit0d7da3207f084eb5cb58d98b4f769f30cd90815b (patch)
tree1d25ea79c91f453b75e53bce0c197872e227d9e8 /tests/benchmarks
parent71ce6592e4aacf2fcf74dea0194ffdad4e7c3394 (diff)
downloadlibssh-0d7da3207f084eb5cb58d98b4f769f30cd90815b.tar.gz
libssh-0d7da3207f084eb5cb58d98b4f769f30cd90815b.tar.xz
libssh-0d7da3207f084eb5cb58d98b4f769f30cd90815b.zip
Fix a bunch of -Wmaybe-uninitialized
Reviewed-By: Aris Adamantiadis <aris@0xbadc0de.be>
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/bench_sftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/benchmarks/bench_sftp.c b/tests/benchmarks/bench_sftp.c
index 9e4ab34d..601ecec0 100644
--- a/tests/benchmarks/bench_sftp.c
+++ b/tests/benchmarks/bench_sftp.c
@@ -45,7 +45,7 @@ int benchmarks_sync_sftp_up (ssh_session session, struct argument_s *args,
float ms=0.0;
unsigned long total=0;
sftp_session sftp;
- sftp_file file;
+ sftp_file file = NULL;
bytes = args->datasize * 1024 * 1024;
sftp = sftp_new(session);
@@ -101,7 +101,7 @@ int benchmarks_sync_sftp_down (ssh_session session, struct argument_s *args,
float ms=0.0;
unsigned long total=0;
sftp_session sftp;
- sftp_file file;
+ sftp_file file = NULL;
int r;
bytes = args->datasize * 1024 * 1024;
@@ -163,7 +163,7 @@ int benchmarks_async_sftp_down (ssh_session session, struct argument_s *args,
float ms=0.0;
unsigned long total=0;
sftp_session sftp;
- sftp_file file;
+ sftp_file file = NULL;
int r,i;
int warned = 0;
unsigned long toread;