Re: Improve list manipulation in several places - Mailing list pgsql-hackers

From David Rowley
Subject Re: Improve list manipulation in several places
Date
Msg-id CAApHDvriWWAUQxfQQ3bEMjmXNJpsTMpr2m75LNBc_GFQ8vJrXw@mail.gmail.com
Whole thread Raw
In response to Re: Improve list manipulation in several places  (Ranier Vilela <ranier.vf@gmail.com>)
Responses Re: Improve list manipulation in several places  (Ranier Vilela <ranier.vf@gmail.com>)
List pgsql-hackers
On Fri, 21 Apr 2023 at 23:16, Ranier Vilela <ranier.vf@gmail.com> wrote:
> Perhaps list_delete_nth_cell needs to check NIL too?
> + if (list == NIL)
> + return NIL;

Which cell would you be deleting from an empty list?

David



pgsql-hackers by date:

Previous
From: Thom Brown
Date:
Subject: Re: Remove references to pre-11 versions
Next
From: Amit Kapila
Date:
Subject: Re: Non-superuser subscription owners