From c24108a8c82f625d05f569bc0accf17d9995c7aa Mon Sep 17 00:00:00 2001 From: Ron Eldor Date: Sun, 24 Jun 2018 16:34:15 +0300 Subject: [PATCH] Fix style issue Add space before and after paranthesis. --- programs/pkey/key_app.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/programs/pkey/key_app.c b/programs/pkey/key_app.c index 7aa7651f8..96c6b70e8 100644 --- a/programs/pkey/key_app.c +++ b/programs/pkey/key_app.c @@ -266,8 +266,11 @@ int main( int argc, char *argv[] ) cleanup: #if defined(MBEDTLS_ERROR_C) - mbedtls_strerror( ret, buf, sizeof(buf) ); - mbedtls_printf( " ! Last error was: %s\n", buf ); + if( ret != 0 ) + { + mbedtls_strerror( ret, buf, sizeof( buf ) ); + mbedtls_printf( " ! Last error was: %s\n", buf ); + } #endif mbedtls_pk_free( &pk );