[Horus] Malloc check added
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user