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

index c4623ec020f02bf657ced33233ed520f435118d7..359ddfe4d7d0cbe80b2c12adb5f1250b8748d097 100644 (file)
@@ -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);