]> granicus.if.org Git - postgresql/commitdiff
Fix compiler warning.
authorRobert Haas <rhaas@postgresql.org>
Tue, 7 Feb 2017 20:09:14 +0000 (15:09 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 7 Feb 2017 20:09:14 +0000 (15:09 -0500)
Mithun Cy, per a report by Erik Rijkers

src/backend/access/hash/hashpage.c

index d52f149389b3c1e666c64477b39c3dc71b7d22a2..9485978bfb09d1a88192739ae3e4be4da60e6fe0 100644 (file)
@@ -1220,7 +1220,7 @@ _hash_getcachedmetap(Relation rel, Buffer *metabuf, bool force_refresh)
        Assert(metabuf);
        if (force_refresh || rel->rd_amcache == NULL)
        {
-               char   *cache;
+               char   *cache = NULL;
 
                /*
                 * It's important that we don't set rd_amcache to an invalid