From 28858811472f316f73eba0e564837088fc8c6ccd Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 22 Oct 2013 00:38:53 -0400 Subject: [PATCH] Fix blatantly broken record_image_cmp() logic for pass-by-value fields. Doesn't anybody here pay attention to compiler warnings? --- src/backend/utils/adt/rowtypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/adt/rowtypes.c b/src/backend/utils/adt/rowtypes.c index ae007cfe31..cb04a724d3 100644 --- a/src/backend/utils/adt/rowtypes.c +++ b/src/backend/utils/adt/rowtypes.c @@ -1430,7 +1430,7 @@ record_image_cmp(FunctionCallInfo fcinfo) */ if (!nulls1[i1] || !nulls2[i2]) { - int cmpresult; + int cmpresult = 0; if (nulls1[i1]) { -- 2.40.0