Silence compiler warning.
authorRobert Haas <rhaas@postgresql.org>
Thu, 8 Dec 2016 19:55:47 +0000 (14:55 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 8 Dec 2016 19:55:47 +0000 (14:55 -0500)
Per report from Stephen Frost.

src/backend/catalog/partition.c

index 6dab45f0edf8b1617d7239652fe36f113d30fd7a..219d380cde567cf4804a3f57dc2cd204cdc03f20 100644 (file)
@@ -1744,7 +1744,7 @@ partition_rbound_cmp(PartitionKey key,
                                         Datum *datums1, RangeDatumContent *content1, bool lower1,
                                         PartitionRangeBound *b2)
 {
-       int32           cmpval;
+       int32           cmpval = 0;             /* placate compiler */
        int                     i;
        Datum      *datums2 = b2->datums;
        RangeDatumContent *content2 = b2->content;