zapit:use avoid unaligned hack only with sh4 hw; this segfault on not sh4 hw

Origin commit data
------------------
Commit: 9474591afe
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-10-19 (Tue, 19 Oct 2021)
This commit is contained in:
Jacek Jendrzej
2021-10-19 22:35:24 +02:00
committed by vanhofen
parent b6400499ca
commit a0e485a33f

View File

@@ -449,9 +449,10 @@ void CBouquetManager::parseBouquetsXml(const char *fname, bool bUser)
if (uName)
uname = uName;
const char *url = xmlGetAttribute(channel_node, "u");
#if HAVE_SPARK_HARDWARE
if (url && ((uintptr_t)url % 4))
url = std::string(url).c_str(); /* hack to ensure buffer is aligned */
#endif
GET_ATTR(channel_node, "i", SCANF_SERVICE_ID_TYPE, service_id);
GET_ATTR(channel_node, "on", SCANF_ORIGINAL_NETWORK_ID_TYPE, original_network_id);
GET_ATTR(channel_node, "s", SCANF_SATELLITE_POSITION_TYPE, satellitePosition);