Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2885881

Browse files
committed
Fix blatantly broken record_image_cmp() logic for pass-by-value fields.
Doesn't anybody here pay attention to compiler warnings?
1 parent 08612f4 commit 2885881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/rowtypes.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ record_image_cmp(FunctionCallInfo fcinfo)
14301430
*/
14311431
if (!nulls1[i1] || !nulls2[i2])
14321432
{
1433-
int cmpresult;
1433+
int cmpresult = 0;
14341434

14351435
if (nulls1[i1])
14361436
{

0 commit comments

Comments
 (0)