Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-tus
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
libvmod-tus
Commits
c28ca54c
Unverified
Commit
c28ca54c
authored
Sep 09, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish: assertion instead of assignment
parent
0f86b43f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tus_request.c
src/tus_request.c
+3
-1
No files found.
src/tus_request.c
View file @
c28ca54c
...
...
@@ -359,6 +359,7 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
}
}
AZ
(
r
->
fcore
);
if
(
m
==
DELETE
)
{
if
(
fcore
==
NULL
)
{
r
->
status
=
404
;
...
...
@@ -367,12 +368,12 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
tus_file_del
(
&
fcore
);
// unlocks fcore
AZ
(
pthread_mutex_unlock
(
&
tussrv
->
mtx
));
r
->
fcore
=
NULL
;
r
->
status
=
204
;
}
return
(
0
);
}
AZ
(
r
->
fcore
);
if
(
m
==
GET
)
{
if
(
fcore
==
NULL
)
{
r
->
status
=
404
;
...
...
@@ -389,6 +390,7 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
return
(
0
);
}
AZ
(
r
->
fcore
);
r
->
fcore
=
fcore
;
if
(
m
==
HEAD
)
{
...
...
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