Assignment before assert

From: Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Assignment before assert
Date: 2025-02-13 17:08:26
Message-ID: 1618848d-cdc7-414b-9c03-08cf4bef4408@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi!
Function EvalPlanQualFetchRowMark contains an assignment

ExecRowMark *erm = earm->rowmark;

before assert

Assert(earm != NULL);

Maybe these lines need to be swapped?

--
With best regards,
Dmitry Koval

Postgres Professional: http://postgrespro.com

Attachment Content-Type Size
v1-0001-fix-assignment-before-assert.patch text/plain 661 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sami Imseih 2025-02-13 17:10:27 Re: Proposal - Allow extensions to set a Plan Identifier
Previous Message Hannu Krosing 2025-02-13 17:00:02 Is pgAdmin the only front-end to PostgreSQL debugger ? And is "a working pl/pgsql debugger" something core should care to maintain ?