1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 08:15:17 +03:00

[Horus] Malloc check added

This commit is contained in:
Bertrand Songis 2017-01-22 21:44:44 +01:00
parent 2f0492cec5
commit cdb3f48da7

View file

@ -59,6 +59,9 @@ ZoneOption * createOptionsArray(int reference)
}
ZoneOption * options = (ZoneOption *)malloc(sizeof(ZoneOption) * (count+1));
if (!options) {
return NULL;
}
lua_rawgeti(lsWidgets, LUA_REGISTRYINDEX, reference);
ZoneOption * option = options;