Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 96b1a9e

Browse files
committed
initialize allocated values with zeros in InitFuncArgs() so that valgrind stops complaining
1 parent c4a7bcb commit 96b1a9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/pathman_wrapper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ pathman_invoke_return_value_omit_errors(const char *func,
152152
static void
153153
InitFuncArgs(FuncArgs *funcargs, uint32 size)
154154
{
155-
funcargs->types = palloc(sizeof(Oid) * size);
156-
funcargs->values = palloc(sizeof(Datum) * size);
155+
funcargs->types = palloc0(sizeof(Oid) * size);
156+
funcargs->values = palloc0(sizeof(Datum) * size);
157157
funcargs->nulls = palloc(sizeof(char) * size);
158158
funcargs->nargs = size;
159159

0 commit comments

Comments
 (0)