pgsql: Don't initialize TLI variable to -1, as TimeLineID is unsigned. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Don't initialize TLI variable to -1, as TimeLineID is unsigned.
Date
Msg-id E1Sq77D-0000zp-4q@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Don't initialize TLI variable to -1, as TimeLineID is unsigned.

This was causing a compiler warning with Solaris compiler. Use 0 instead.
The variable is initialized just for the sake of tidyness  and/or debugging,
it's not used for anything before setting it to a real value.

Per report and suggestion from Peter Eisentraut.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2686da9db2aec19763ff2dfe5c034da8fb5eb382

Modified Files
--------------
src/backend/replication/walreceiver.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Print the name of the WAL file containing latest REDO ptr in pg_
Next
From: Tom Lane
Date:
Subject: pgsql: Prevent corner-case core dump in rfree().