From a9c16d2825f6b16086e2a70b0917faf8931101f4 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Thu, 17 Apr 2014 12:42:18 +0200
Subject: [PATCH] Removed unused cur variable in x509_string_to_names()
---
library/x509_create.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/library/x509_create.c b/library/x509_create.c
index fdf2a7246..2ac4d1d0c 100644
--- a/library/x509_create.c
+++ b/library/x509_create.c
@@ -43,7 +43,6 @@ int x509_string_to_names( asn1_named_data **head, const char *name )
const char *end = s + strlen( s );
const char *oid = NULL;
int in_tag = 1;
- asn1_named_data *cur;
/* Clear existing chain if present */
asn1_free_named_data_list( head );
@@ -84,9 +83,9 @@ int x509_string_to_names( asn1_named_data **head, const char *name )
if( !in_tag && ( *c == ',' || c == end ) )
{
- if( ( cur = asn1_store_named_data( head, oid, strlen( oid ),
- (unsigned char *) s,
- c - s ) ) == NULL )
+ if( asn1_store_named_data( head, oid, strlen( oid ),
+ (unsigned char *) s,
+ c - s ) == NULL )
{
return( POLARSSL_ERR_X509_MALLOC_FAILED );
}