mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Coerce type of NULL pointer return to suppress gcc compiler warnings.
This commit is contained in:
@@ -437,7 +437,7 @@ SPI_getbinval(HeapTuple tuple, TupleDesc tupdesc, int fnumber, bool * isnull)
|
||||
*isnull = true;
|
||||
SPI_result = 0;
|
||||
if (tuple->t_natts < fnumber || fnumber <= 0)
|
||||
return (NULL);
|
||||
return ((Datum) NULL);
|
||||
|
||||
val = heap_getattr(tuple, InvalidBuffer, fnumber, tupdesc, isnull);
|
||||
|
||||
|
Reference in New Issue
Block a user