]> granicus.if.org Git - postgresql/commitdiff
Fix blatantly broken record_image_cmp() logic for pass-by-value fields.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Oct 2013 04:38:53 +0000 (00:38 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Oct 2013 04:38:53 +0000 (00:38 -0400)
Doesn't anybody here pay attention to compiler warnings?

src/backend/utils/adt/rowtypes.c

index ae007cfe319e2f823480ad7c632bc48e7d79ddd2..cb04a724d3ba7a3794c742b987b59906efde5dc4 100644 (file)
@@ -1430,7 +1430,7 @@ record_image_cmp(FunctionCallInfo fcinfo)
                 */
                if (!nulls1[i1] || !nulls2[i2])
                {
-                       int                     cmpresult;
+                       int                     cmpresult = 0;
 
                        if (nulls1[i1])
                        {