Silence _bt_check_unique compiler warning.
authorPeter Geoghegan <pg@bowt.ie>
Sat, 13 Jun 2020 16:33:33 +0000 (09:33 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Sat, 13 Jun 2020 16:33:33 +0000 (09:33 -0700)
Reported-By: Tom Lane
Discussion: https://postgr.es/m/841649.1592065060@sss.pgh.pa.us

src/backend/access/nbtree/nbtinsert.c

index a36b35010e5bdc8a9dfa9941b6c564b7b0e68829..55fe16bd4e12d26fc77cfa58a1bf43d85dd047a5 100644 (file)
@@ -389,7 +389,7 @@ _bt_check_unique(Relation rel, BTInsertState insertstate, Relation heapRel,
                 uint32 *speculativeToken)
 {
    IndexTuple  itup = insertstate->itup;
-   IndexTuple  curitup;
+   IndexTuple  curitup = NULL;
    ItemId      curitemid;
    BTScanInsert itup_key = insertstate->itup_key;
    SnapshotData SnapshotDirty;