cabinent: add a comment about parm passing
Alexandre Julliard
julliard at winehq.org
Thu Jun 28 04:38:05 CDT 2007
Jeff L <lats at yless4u.com.au> writes:
> Mainly because the logic is a bit difficult. It depends on the length
> being 0 to terminate the for loop and prevent the null reference. It
> is not obvious and easily missed the first time through. Wine has a
> number of things like that and more comments would make it quicker and
> safer to works with.
No, the proper way is to fix the code so that it's understandable.
In this specific case you can get rid of the realloc function, it's
useless.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list