public inbox for [email protected]  
help / color / mirror / Atom feed
From: David Rowley <[email protected]>
To: Ranier Vilela <[email protected]>
Cc: Richard Guo <[email protected]>
Cc: PostgreSQL-development <[email protected]>
Subject: Re: Improve list manipulation in several places
Date: Sat, 22 Apr 2023 00:09:54 +1200
Message-ID: <CAApHDvriWWAUQxfQQ3bEMjmXNJpsTMpr2m75LNBc_GFQ8vJrXw@mail.gmail.com> (raw)
In-Reply-To: <CAEudQArQSosP9qNR62M6_44t_iicQ4f9JAWmB5nriRccx-TfeQ@mail.gmail.com>
References: <CAMbWs49dJnpezDQDDxCPKq7+=_3NyqLqGqnhqCjd+dYe4MS15w@mail.gmail.com>
	<CAEudQArQSosP9qNR62M6_44t_iicQ4f9JAWmB5nriRccx-TfeQ@mail.gmail.com>

On Fri, 21 Apr 2023 at 23:16, Ranier Vilela <[email protected]> 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






view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Improve list manipulation in several places
  In-Reply-To: <CAApHDvriWWAUQxfQQ3bEMjmXNJpsTMpr2m75LNBc_GFQ8vJrXw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox