]> granicus.if.org Git - postgresql/commitdiff
Silence bogus compiler warning.
authorRobert Haas <rhaas@postgresql.org>
Fri, 4 Nov 2011 14:40:52 +0000 (10:40 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 4 Nov 2011 14:40:52 +0000 (10:40 -0400)
contrib/pg_upgrade/relfilenode.c

index d67d01fea943f3d48576d6e834c37f9397fa6009..721bf4d8db26504ddd275a6eb1753e1228bc777c 100644 (file)
@@ -44,7 +44,7 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr,
                 old_dbnum < old_db_arr->ndbs;
                 old_dbnum++, new_dbnum++)
        {
-               DbInfo     *old_db = &old_db_arr->dbs[old_dbnum], *new_db;
+               DbInfo     *old_db = &old_db_arr->dbs[old_dbnum], *new_db = NULL;
                FileNameMap *mappings;
                int                     n_maps;
                pageCnvCtx *pageConverter = NULL;