mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 01:53:41 +08:00
Add Ensure to fix coverity defect (#7338)
Coverity detected a possible null pointer dereference. It doesn't seem like this can be triggered, so added an `Ensure` clause. Disable-check: force-changelog-file
This commit is contained in:
parent
3c707bf28a
commit
3834d81b46
@ -11,6 +11,7 @@
|
||||
* the PostgreSQL License.
|
||||
*/
|
||||
#include <postgres.h>
|
||||
#include "debug_assert.h"
|
||||
#include <catalog/pg_type.h>
|
||||
#include <executor/nodeModifyTable.h>
|
||||
#include <executor/tuptable.h>
|
||||
@ -743,6 +744,7 @@ lmerge_matched:;
|
||||
* tuple, for the refetch we do at
|
||||
* the top.
|
||||
*/
|
||||
Ensure(tupleid != NULL, "matched tupleid during merge cannot be null");
|
||||
ItemPointerCopy(&context->tmfd.ctid, tupleid);
|
||||
goto lmerge_matched;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user