neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/libasn1c/+/37983?usp=email )
Change subject: coverity CID#57935 ......................................................................
coverity CID#57935
always initialize t2m_count.
Change-Id: I23cfbb1cf1fc12ebd4db8e4b58c5e797b2834897 --- M src/constr_SET.c 1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libasn1c refs/changes/83/37983/1
diff --git a/src/constr_SET.c b/src/constr_SET.c index 8a124c0..85e2527 100644 --- a/src/constr_SET.c +++ b/src/constr_SET.c @@ -598,7 +598,7 @@ int t2m_build_own = (specs->tag2el_count != td->elements_count); const asn_TYPE_tag2member_t *t2m; asn_TYPE_tag2member_t *t2m_build; - int t2m_count; + int t2m_count = 0;
(void)constraints;
@@ -616,7 +616,6 @@ t2m_build = (asn_TYPE_tag2member_t *)alloca( td->elements_count * sizeof(t2m[0])); if(!t2m_build) _ASN_ENCODE_FAILED; /* There are such platforms */ - t2m_count = 0; } else { t2m_build = NULL; /*