Tomas Härdin <tomas.har...@codemill.se> writes: > On Sun, 2012-07-08 at 21:12 +0100, Måns Rullgård wrote: >> Tomas Härdin <tomas.har...@codemill.se> writes: >> > +void *av_calloc(size_t nmemb, size_t size) >> > +{ >> > + if (size <= 0 || nmemb >= INT_MAX / size) >> > + return NULL; >> > + return av_mallocz(nmemb * size); >> > +} >> >> The places where this would be used don't in general need zeroed memory. > > Indeed, but calloc() zeroes memory so I'd say it's expected behavior.
That's a ridiculous argument. Give the function another name. -- Måns Rullgård m...@mansr.com _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel