simutil: Fix copiler warning

src/simutil.c:1573:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
	app.type = GUINT16_FROM_BE(*((unsigned short *)(app.aid + 5)));
This commit is contained in:
Denis Kenzior 2018-01-19 14:12:37 -06:00
parent 62382e8ac3
commit 0e8e7346af
1 changed files with 1 additions and 1 deletions

View File

@ -1570,7 +1570,7 @@ GSList *sim_parse_app_template_entries(const unsigned char *buffer, int len)
memcpy(app.aid, aid, app.aid_len);
app.type = GUINT16_FROM_BE(*((unsigned short *)(app.aid + 5)));
app.type = (app.aid[5] << 8) & app.aid[6];
/* Find the label (optional) */
label = ber_tlv_find_by_tag(dataobj, 0x50, dataobj_len,