pgsql: Fix possibly-uninitialized-variable warning from commit9556aa01 - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix possibly-uninitialized-variable warning from commit9556aa01
Date
Msg-id E1gn4Kc-00018f-BC@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Use single-byte Boyer-Moore-Horspool search even withmultibyte
Next
From: Tom Lane
Date:
Subject: pgsql: Teach nulltestsel() that system columns are never NULL.