Re: sparse (static analyzer) report

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: sparse (static analyzer) report
Date: 2005-01-15 07:14:17
Message-ID: 87pt07tb92.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> writes:

> Hmm. Well, it showed the multiple incorrect uses of 0 as NULL in
> dllist.c and other places,

Incidentally, while it may not be conformant to your style guidelines, use of
the constant 0 compared to or assigned to a pointer is a perfectly valid ANSI
spelling for NULL. (The same is not true for an expression that happens to
evaluate to 0.)

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-01-15 08:02:45 Re: sparse (static analyzer) report
Previous Message Brendan Jurd 2005-01-15 06:25:41 Re: Time span conversion function