[Scummvm-devel] ScummVM 1.0.0: Release status 2009-08-11 -- Full feature, freeze

Andre Heider a.heider at gmail.com
Fri Aug 14 14:04:52 CEST 2009


On Fri, Aug 14, 2009 at 12:09 PM, Bertrand
Augereau<bertrand_augereau at yahoo.fr> wrote:
> I am not a language lawyer and I don't have the standard by me now, but all the mallocs implementations I know return a valid pointer when doing malloc(0), with header and footer and so on : so at least practically you can expect an overhead.

Without further research: IIRC the behaviour of malloc(0) is compiler
implementation-defined and such a call should be avoided.
Nevertheless, it should be okay to just exit Actor::loadFrameList() if
framesCount equals zero.

Regards,
Andre




More information about the Scummvm-devel mailing list