summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/stkutil.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/stkutil.c b/src/stkutil.c
index 85021232..dda47def 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -3623,9 +3623,12 @@ static gboolean build_dataobj_access_technologies(struct stk_tlv_builder *tlv,
static gboolean build_dataobj_access_technology(struct stk_tlv_builder *tlv,
const void *data, gboolean cr)
{
- return build_dataobj_access_technologies(tlv,
- &(const struct stk_access_technologies) {
- .techs = data, .length = 1 }, cr);
+ const struct stk_access_technologies techs = {
+ .techs = data,
+ .length = 1,
+ };
+
+ return build_dataobj_access_technologies(tlv, &techs, cr);
}
/* Described in TS 102.223 Section 8.69 */