Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
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
varnishevent3
Commits
6fe073ae
Commit
6fe073ae
authored
Mar 14, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't acces symbol until we are sure we have one.
parent
395a5c8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vcc_expr.c
lib/libvcl/vcc_expr.c
+1
-1
No files found.
lib/libvcl/vcc_expr.c
View file @
6fe073ae
...
...
@@ -579,7 +579,6 @@ vcc_Eval_Func(struct vcc *tl, struct expr **e, const struct symbol *sym)
}
else
if
(
fmt
==
HEADER
)
{
const
struct
var
*
v
;
sym
=
VCC_FindSymbol
(
tl
,
tl
->
t
,
SYM_NONE
);
vcc_AddUses
(
tl
,
tl
->
t
,
sym
->
r_methods
,
"Not available"
);
ERRCHK
(
tl
);
SkipToken
(
tl
,
ID
);
if
(
sym
==
NULL
)
{
...
...
@@ -587,6 +586,7 @@ vcc_Eval_Func(struct vcc *tl, struct expr **e, const struct symbol *sym)
vcc_ErrWhere
(
tl
,
tl
->
t
);
return
;
}
vcc_AddUses
(
tl
,
tl
->
t
,
sym
->
r_methods
,
"Not available"
);
if
(
sym
->
kind
!=
SYM_VAR
)
{
vsb_printf
(
tl
->
sb
,
"Wrong kind of symbol.
\n
"
);
vcc_ErrWhere
(
tl
,
tl
->
t
);
...
...
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