Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdfp-pipe
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvdfp-pipe
Commits
3ddeaa5f
Unverified
Commit
3ddeaa5f
authored
Jan 01, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use WS_TASK_ALLOC_OBJ()
parent
92566707
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vdfp_pipe.c
src/vdfp_pipe.c
+5
-5
No files found.
src/vdfp_pipe.c
View file @
3ddeaa5f
...
...
@@ -783,15 +783,15 @@ get_task(VRT_CTX, struct VPFX(pipe_vdp) *obj, const char *method)
priv
=
VRT_priv_task
(
ctx
,
obj
);
AN
(
priv
);
if
(
priv
->
priv
==
NULL
)
{
if
((
priv
->
priv
=
WS_Alloc
(
ctx
->
ws
,
sizeof
(
*
task
)))
==
NULL
)
{
WS_TASK_ALLOC_OBJ
(
ctx
,
task
,
PIPE_TASK_MAGIC
);
if
(
task
==
NULL
)
{
VDPFAIL
(
ctx
,
"%s.%s(): insufficient workspace for "
"task config"
,
obj
->
name
,
method
);
return
(
NULL
);
}
priv
->
len
=
sizeof
(
*
task
);
priv
->
methods
=
priv_task_methods
;
task
=
(
struct
task_cfg
*
)
priv
->
priv
;
INIT_OBJ
(
task
,
PIPE_TASK_MAGIC
);
priv
->
priv
=
task
;
}
else
{
AN
(
WS_Allocated
(
ctx
->
ws
,
priv
->
priv
,
sizeof
(
*
task
)));
...
...
@@ -952,12 +952,12 @@ vmod_vdp_setenv(VRT_CTX, struct VPFX(pipe_vdp) *obj, VCL_STRING var,
VSTAILQ_INIT
(
task
->
setenv_head
);
}
if
((
entry
=
WS_Alloc
(
ctx
->
ws
,
sizeof
(
*
entry
)))
==
NULL
)
{
WS_TASK_ALLOC_OBJ
(
ctx
,
entry
,
PIPE_SETENV_MAGIC
);
if
(
entry
==
NULL
)
{
VDPFAIL
(
ctx
,
"%s.setenv(): insufficient workspace for list "
"entry"
,
obj
->
name
);
return
;
}
INIT_OBJ
(
entry
,
PIPE_SETENV_MAGIC
);
if
((
entry
->
var
=
WS_Copy
(
ctx
->
ws
,
var
,
-
1
))
==
NULL
)
{
VDPFAIL
(
ctx
,
"%s.setenv(): insufficient workspace for var"
,
obj
->
name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment