postgres.git / summary / log / commit / refs
commit 73f47aa0cdccbca29ef99f8e045f8eb5448e2a11
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: Tue Dec 06 18:22:33 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 c4623ec020f..359ddfe4d7d 100644
--- a/contrib/ltree/_ltree_gist.c
+++ b/contrib/ltree/_ltree_gist.c
@@ -85,7 +85,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: a615acf555c0]