]> granicus.if.org Git - postgresql/commitdiff
Fix typo in b34e37bfefbed1bf9396dde18f308d8b96fd176c.
authorRobert Haas <rhaas@postgresql.org>
Tue, 26 Aug 2014 19:58:50 +0000 (15:58 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 26 Aug 2014 19:58:50 +0000 (15:58 -0400)
Spotted by Peter Geoghegan.

src/backend/utils/adt/varlena.c

index 1bd8abbe586c0a226b7c62386dfc959bc562a290..75495425f839ba29e192c477c5112d1710db385c 100644 (file)
@@ -1851,7 +1851,7 @@ bttextfastcmp_locale(Datum x, Datum y, SortSupport ssup)
        if (len2 >= tss->buflen2)
        {
                pfree(tss->buf2);
-               tss->buflen1 = Max(len2 + 1, Min(tss->buflen2 * 2, MaxAllocSize));
+               tss->buflen2 = Max(len2 + 1, Min(tss->buflen2 * 2, MaxAllocSize));
                tss->buf2 = MemoryContextAlloc(ssup->ssup_cxt, tss->buflen2);
        }