summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-06-16 12:58:57 -0400
committerRich Salz <rsalz@openssl.org>2016-06-16 14:22:58 -0400
commit7f96f15bcfabaa4597fcc9529b7a0716f15e55ff (patch)
tree22ab82e903f097c89f5f7b7871ac3d3389811ba8 /crypto/asn1
parentebad0b0beb1bb6913524549514111cbb91e6d494 (diff)
Fix build break.
Aggregate local initializers are rarely portable (: Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/asn_mime.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/crypto/asn1/asn_mime.c b/crypto/asn1/asn_mime.c
index 98f363ef42..a6b38935a2 100644
--- a/crypto/asn1/asn_mime.c
+++ b/crypto/asn1/asn_mime.c
@@ -876,9 +876,13 @@ static int mime_param_cmp(const MIME_PARAM *const *a,
static MIME_HEADER *mime_hdr_find(STACK_OF(MIME_HEADER) *hdrs, const char *name)
{
- MIME_HEADER htmp = { (char *)name, NULL }; /* ugly cast but harmless */
+ MIME_HEADER htmp;
int idx;
+ htmp.name = (char *)name;
+ htmp.value = NULL;
+ htmp.params = NULL;
+
idx = sk_MIME_HEADER_find(hdrs, &htmp);
if (idx < 0)
return NULL;
@@ -887,9 +891,11 @@ static MIME_HEADER *mime_hdr_find(STACK_OF(MIME_HEADER) *hdrs, const char *name)
static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, const char *name)
{
- MIME_PARAM param = { (char *)name, NULL }; /* ugly cast but harmless */
+ MIME_PARAM param;
int idx;
+ param.param_name = (char *)name;
+ param.param_value = NULL;
idx = sk_MIME_PARAM_find(hdr->params, &param);
if (idx < 0)
return NULL;