From: Teodor Sigaev Date: Tue, 6 Dec 2005 18:22:21 +0000 (+0000) Subject: Fix stupid bug with sizeof X-Git-Tag: REL8_0_5~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a40b555d32dc58fb60c3a13917fda77f3158ba6;p=thirdparty%2Fpostgresql.git Fix stupid bug with sizeof --- diff --git a/contrib/ltree/_ltree_gist.c b/contrib/ltree/_ltree_gist.c index 50a38405c67..84f4da9d620 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);