diff --git a/contrib/ltree/_ltree_gist.c b/contrib/ltree/_ltree_gist.c index 50a38405c6..84f4da9d62 100644 --- a/contrib/ltree/_ltree_gist.c +++ b/contrib/ltree/_ltree_gist.c @@ -82,7 +82,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);