Skip to content

Commit 867493e

Browse files
committed
Fill created VOPS instance with zeros
1 parent aa80b1f commit 867493e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static struct {
9292
#define PG_GETARG_VOPS(type,n) ((vops_##type*)VARDATA_ANY(PG_GETARG_VARLENA_PP(n)))
9393
static void* vops_new(size_t size)
9494
{
95-
text *result = (text *) palloc(size + VARHDRSZ);
95+
text *result = (text *) palloc0(size + VARHDRSZ);
9696
SET_VARSIZE(result, size + VARHDRSZ);
9797
return result;
9898
}

0 commit comments

Comments
 (0)