Skip to content

Commit

Permalink
Fix coverity scan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziomello committed Nov 12, 2024
1 parent a81cb28 commit 2710f62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tsl/src/hypercore/arrow_tts.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ arrow_slot_get_attribute_offset_map_slow(TupleTableSlot *slot)

Assert(aslot->attrs_offset_map == NULL);

Ensure(OidIsValid(relid), "invalid relation for ArrowTupleTableSlot");
if (!OidIsValid(relid))
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("invalid relation for ArrowTupleTableSlot")));

aslot->attrs_offset_map =
MemoryContextAllocZero(slot->tts_mcxt, sizeof(int16) * tupdesc->natts);
Expand Down

0 comments on commit 2710f62

Please sign in to comment.