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

index d8efd8096d0f1e063f6b8efb07c55cb3cb855d91..2166fa2efb68a3fa31c13f458175bd689dbc00db 100644 (file)
@@ -80,7 +80,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);