pgsql: Fix possibly-uninitialized-variable warning from commit 9556aa01

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix possibly-uninitialized-variable warning from commit 9556aa01
Date: 2019-01-25 16:27:50
Message-ID: E1gn4Kc-00018f-BC@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix possibly-uninitialized-variable warning from commit 9556aa01c.

Heikki's compiler doesn't complain about end_ptr, apparently,
but mine does.

In passing, I failed to resist the temptation to remove the
no-longer-used fldnum variable, and relocate chunk_len's
declaration to a narrower scope.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6119060d01ab2dfb9e2c1c101595f2de7890965d

Modified Files
--------------
src/backend/utils/adt/varlena.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-01-25 16:44:31 pgsql: Teach nulltestsel() that system columns are never NULL.
Previous Message Heikki Linnakangas 2019-01-25 14:29:19 pgsql: Use single-byte Boyer-Moore-Horspool search even with multibyte