Silence another _bt_check_unique compiler warning.
authorPeter Geoghegan
Thu, 8 Apr 2021 19:54:31 +0000 (12:54 -0700)
committerPeter Geoghegan
Thu, 8 Apr 2021 19:54:31 +0000 (12:54 -0700)
Per complaint from Tom Lane

Discussion: https://postgr.es/m/1922884.1617909599@sss.pgh.pa.us

src/backend/access/nbtree/nbtinsert.c

index 0bc86943ebc550d5b191badc24511a8d2107e1ec..6ac205c98ee8e8147e75f32b13ed07a44d38049f 100644 (file)
@@ -408,7 +408,7 @@ _bt_check_unique(Relation rel, BTInsertState insertstate, Relation heapRel,
 {
    IndexTuple  itup = insertstate->itup;
    IndexTuple  curitup = NULL;
-   ItemId      curitemid;
+   ItemId      curitemid = NULL;
    BTScanInsert itup_key = insertstate->itup_key;
    SnapshotData SnapshotDirty;
    OffsetNumber offset;