Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group