pgsql: Remove duplicate variable initializations identified by clang

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove duplicate variable initializations identified by clang
Date: 2009-08-30 16:53:31
Message-ID: 20090830165331.DFDF275331E@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Remove duplicate variable initializations identified by clang static checker.
One of these represents a nontrivial bug (a promptly-leaked palloc), so
backpatch.

Greg Stark

Modified Files:
--------------
pgsql/src/backend/tsearch:
regis.c (r1.7 -> r1.8)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/regis.c?r1=1.7&r2=1.8)
ts_parse.c (r1.14 -> r1.15)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/ts_parse.c?r1=1.14&r2=1.15)
pgsql/src/backend/utils/adt:
encode.c (r1.24 -> r1.25)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/encode.c?r1=1.24&r2=1.25)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2009-08-30 16:53:38 pgsql: Remove duplicate variable initializations identified by clang
Previous Message Tom Lane 2009-08-29 19:26:52 pgsql: Remove the use of the pg_auth flat file for client