Re: null iv parameter passed to combo_init() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: null iv parameter passed to combo_init()
Date
Msg-id 1643134.1641713553@sss.pgh.pa.us
Whole thread Raw
In response to Re: null iv parameter passed to combo_init()  (Noah Misch <noah@leadboat.com>)
Responses Re: null iv parameter passed to combo_init()
List pgsql-hackers
Noah Misch <noah@leadboat.com> writes:
> On further thought, I would write it this way:

> -        else
> +        else if (ivlen != 0)
>              memcpy(ivbuf, iv, ivlen);

FWIW, I liked the "ivlen > 0" formulation better.  They should be
equivalent, because ivlen is unsigned, but it just seems like "> 0"
is more natural.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Zhihong Yu
Date:
Subject: Re: null iv parameter passed to combo_init()
Next
From: Alexander Lakhin
Date:
Subject: Re: Why is src/test/modules/committs/t/002_standby.pl flaky?