Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
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
unique-xids
Commits
35475f8c
Commit
35475f8c
authored
Apr 16, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing errorchecks incompilation of regsub()
Fixes #1125
parent
10f1de62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vcc_expr.c
lib/libvcl/vcc_expr.c
+4
-0
No files found.
lib/libvcl/vcc_expr.c
View file @
35475f8c
...
@@ -454,6 +454,8 @@ vcc_Eval_Regsub(struct vcc *tl, struct expr **e, const struct symbol *sym)
...
@@ -454,6 +454,8 @@ vcc_Eval_Regsub(struct vcc *tl, struct expr **e, const struct symbol *sym)
SkipToken
(
tl
,
'('
);
SkipToken
(
tl
,
'('
);
vcc_expr0
(
tl
,
&
e2
,
STRING
);
vcc_expr0
(
tl
,
&
e2
,
STRING
);
if
(
e2
==
NULL
)
return
;
if
(
e2
->
fmt
!=
STRING
)
if
(
e2
->
fmt
!=
STRING
)
vcc_expr_tostring
(
&
e2
,
STRING
);
vcc_expr_tostring
(
&
e2
,
STRING
);
...
@@ -467,6 +469,8 @@ vcc_Eval_Regsub(struct vcc *tl, struct expr **e, const struct symbol *sym)
...
@@ -467,6 +469,8 @@ vcc_Eval_Regsub(struct vcc *tl, struct expr **e, const struct symbol *sym)
SkipToken
(
tl
,
','
);
SkipToken
(
tl
,
','
);
vcc_expr0
(
tl
,
&
e2
,
STRING
);
vcc_expr0
(
tl
,
&
e2
,
STRING
);
if
(
e2
==
NULL
)
return
;
if
(
e2
->
fmt
!=
STRING
)
if
(
e2
->
fmt
!=
STRING
)
vcc_expr_tostring
(
&
e2
,
STRING
);
vcc_expr_tostring
(
&
e2
,
STRING
);
*
e
=
vcc_expr_edit
(
STRING
,
"
\v
1,
\v
2)"
,
*
e
,
e2
);
*
e
=
vcc_expr_edit
(
STRING
,
"
\v
1,
\v
2)"
,
*
e
,
e2
);
...
...
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