Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobcode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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-blobcode
Commits
7b8a1650
Commit
7b8a1650
authored
Apr 08, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify decode_l_va()
parent
b127a5a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
vmod_blobcode.c
src/vmod_blobcode.c
+5
-9
No files found.
src/vmod_blobcode.c
View file @
7b8a1650
...
...
@@ -136,18 +136,14 @@ static inline size_t
decode_l_va
(
enum
encoding
dec
,
const
char
*
const
p
,
va_list
ap
)
{
size_t
len
=
0
;
const
char
*
next
;
if
(
p
==
vrt_magic_string_end
)
return
0
;
if
(
p
!=
NULL
)
len
=
strlen
(
p
);
AENC
(
dec
);
while
((
next
=
va_arg
(
ap
,
const
char
*
))
!=
vrt_magic_string_end
)
if
(
next
!=
NULL
)
len
+=
strlen
(
next
);
for
(
const
char
*
s
=
p
;
s
!=
vrt_magic_string_end
;
s
=
va_arg
(
ap
,
const
char
*
))
if
(
s
!=
NULL
&&
*
s
!=
'\0'
)
len
+=
strlen
(
s
);
AENC
(
dec
);
return
(
func
[
dec
].
decode_l
(
len
));
}
...
...
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