Commit 5b78f219 authored by Alfred Klomp's avatar Alfred Klomp Committed by Manuel Pégourié-Gonnard
Browse files

ssl_test.c: remove dead store, assign at declaration

Found with Clang's `scan-build` tool.

The store to `ret` is not used, it's overwritten shortly after. Assign
the value of 1 at declaration time instead to silence scan-build.
parent 1d42b3ea
......@@ -142,7 +142,7 @@ static void my_debug( void *ctx, int level, const char *str )
static int ssl_test( struct options *opt )
int ret, i;
int ret = 1, i;
int client_fd = -1;
int bytes_to_read;
int bytes_to_write;
......@@ -169,8 +169,6 @@ static int ssl_test( struct options *opt )
x509_crt srvcert;
pk_context pkey;
ret = 1;
memset( &ssl, 0, sizeof(ssl_context) );
entropy_init( &entropy );
x509_crt_init( &srvcert );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment