Re: sparse (static analyzer) report - Mailing list pgsql-hackers

From Greg Stark
Subject Re: sparse (static analyzer) report
Date
Msg-id 87pt07tb92.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: sparse (static analyzer) report  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Responses Re: sparse (static analyzer) report  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Alvaro Herrera <alvherre@dcc.uchile.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



pgsql-hackers by date:

Previous
From: Brendan Jurd
Date:
Subject: Re: Time span conversion function
Next
From: Tom Lane
Date:
Subject: Re: sparse (static analyzer) report