[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minor nsfont.m fix

From: Paul Eggert
Subject: Re: Minor nsfont.m fix
Date: Thu, 16 Aug 2012 21:37:18 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

On 08/15/2012 07:02 AM, Dmitry Antipov wrote:
> Since we do not expect NULL from xmalloc and xzalloc, some redundant checks
> may be omitted, OK?

Yes, thanks, that makes sense.

In this particular case, can't we go one better by replacing this:

  unichar *unichars = xmalloc (0x101 * sizeof (unichar));
  xfree (unichars);

with this?

  unichar unichars[0x101];

reply via email to

[Prev in Thread] Current Thread [Next in Thread]