]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix stupid bug with sizeof
authorTeodor Sigaev <teodor@sigaev.ru>
Tue, 6 Dec 2005 18:22:21 +0000 (18:22 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Tue, 6 Dec 2005 18:22:21 +0000 (18:22 +0000)
contrib/ltree/_ltree_gist.c

index 50a38405c675d71ee3a16359afcc78b2a08fdafb..84f4da9d6201706fde40b5b306cd3c2600e1a3be 100644 (file)
@@ -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);