[PATCH 2/4] xkb: Remove superfluous if(x) x = realloc(x, sz); else x = malloc(sz); logic

Daniel Stone daniel at fooishbar.org
Fri Jun 4 08:28:28 PDT 2010


On Fri, Jun 04, 2010 at 11:12:31AM -0400, Matt Turner wrote:
> Why did anyone write the code like that to begin with? Did the
> behavior or realloc not allow this at some point in the past?

I assume it's always been like that, but just hadn't read the realloc
manpage.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100604/a89d1ca8/attachment.pgp>


More information about the xorg-devel mailing list