postgres.git / summary / log / commit / refs

commit    85fc9ad4af4483c33ca72cd65a1ec7be81ce813e
Author:   Teodor Sigaev <teodor@sigaev.ru>
Date:     Tue Dec 06 18:22:09 2005 +0000
First released in: 8.2.0, 7.3.12, 7.4.10, 8.0.5, 8.1.1

    Fix stupid bug with sizeof


contrib/ltree/_ltree_gist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ltree/_ltree_gist.c b/contrib/ltree/_ltree_gist.c index d8efd8096d0..2166fa2efb6 100644 --- a/contrib/ltree/_ltree_gist.c +++ b/contrib/ltree/_ltree_gist.c @@ -80,7 +80,7 @@ _ltree_compress(PG_FUNCTION_ARGS) key->len = len; key->flag = 0; - MemSet(LTG_SIGN(key), 0, sizeof(ASIGLEN)); + MemSet(LTG_SIGN(key), 0, ASIGLEN); while (num > 0) { hashing(LTG_SIGN(key), item); [parent: 304b231e7bc8]