8000 Revert "Fix varlena allocation to avoid garbage contents (part2)." · postgrespro/rum@8094912 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8094912

Browse files
author
Maxim Orlov
committed
Revert "Fix varlena allocation to avoid garbage contents (part2)."
This reverts commit d9963d9.
1 parent 1605f9e commit 8094912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rum_ts_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ rum_extract_tsvector_internal(TSVector vector,
11701170
* uncompressed positions. So allocate memory with a margin.
11711171
*/
11721172
posDataSize = VARHDRSZ + 2 * posVec->npos * sizeof(WordEntryPos);
1173-
posData = (bytea *) palloc0(posDataSize);
1173+
posData = (bytea *) palloc(posDataSize);
11741174

11751175
posDataSize = compress_pos(posData->vl_dat, posVec->pos, posVec->npos) + VARHDRSZ;
11761176
SET_VARSIZE(posData, posDataSize);

0 commit comments

Comments
 (0)
0