mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-24 14:01:13 +00:00
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.
This commit is contained in:
parent
ec99373df6
commit
185962114a
|
@ -145,8 +145,8 @@ int main( int argc, char *argv[] )
|
||||||
*/
|
*/
|
||||||
static int ssl_test( struct options *opt )
|
static int ssl_test( struct options *opt )
|
||||||
{
|
{
|
||||||
int ret, i;
|
int ret = 1, i;
|
||||||
int client_fd;
|
int client_fd = -1;
|
||||||
int bytes_to_read;
|
int bytes_to_read;
|
||||||
int bytes_to_write;
|
int bytes_to_write;
|
||||||
int offset_to_read = 0;
|
int offset_to_read = 0;
|
||||||
|
@ -170,8 +170,6 @@ static int ssl_test( struct options *opt )
|
||||||
x509_cert srvcert;
|
x509_cert srvcert;
|
||||||
rsa_context rsa;
|
rsa_context rsa;
|
||||||
|
|
||||||
ret = 1;
|
|
||||||
|
|
||||||
memset( &ssl, 0, sizeof(ssl_context) );
|
memset( &ssl, 0, sizeof(ssl_context) );
|
||||||
entropy_init( &entropy );
|
entropy_init( &entropy );
|
||||||
memset( &srvcert, 0, sizeof( x509_cert ) );
|
memset( &srvcert, 0, sizeof( x509_cert ) );
|
||||||
|
|
Loading…
Reference in a new issue