From d6d1f410e6200a19c21a27795435a9951484e858 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Thu, 17 Apr 2014 16:03:48 +0200
Subject: [PATCH] Cleaner initialization (values did not matter, but were
uninitialized)
---
programs/ssl/ssl_mail_client.c | 1 +
programs/test/benchmark.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/programs/ssl/ssl_mail_client.c b/programs/ssl/ssl_mail_client.c
index 4f4524aab..20ded2a01 100644
--- a/programs/ssl/ssl_mail_client.c
+++ b/programs/ssl/ssl_mail_client.c
@@ -287,6 +287,7 @@ int write_and_get_response( int sock_fd, unsigned char *buf, size_t len )
return -1;
}
+ data[len] = '\0';
printf("\n%s", data);
len = ret;
for( i = 0; i < len; i++ )
diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c
index 08e3d630e..98bfd4e82 100644
--- a/programs/test/benchmark.c
+++ b/programs/test/benchmark.c
@@ -125,6 +125,7 @@ int main( int argc, char *argv[] )
((void) argv);
memset( buf, 0xAA, sizeof( buf ) );
+ memset( tmp, 0xBB, sizeof( tmp ) );
printf( "\n" );