summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorwenji <wenji>2007-12-12 06:53:08 +0000
committerwenji <wenji>2007-12-12 06:53:08 +0000
commit75686668b1a65907e4bd4247eea74aca099b82a3 (patch)
tree601af76b359a3c51630f3337139eaab4647b03a5 /parse.cxx
parent0dade809a3197b89f407e294dd2ce2b037f18658 (diff)
downloadsystemtap-steved-75686668b1a65907e4bd4247eea74aca099b82a3.tar.gz
systemtap-steved-75686668b1a65907e4bd4247eea74aca099b82a3.tar.xz
systemtap-steved-75686668b1a65907e4bd4247eea74aca099b82a3.zip
2007-12-12 Wenji Huang <wenji.huang@oracle.com>
PR 5470 * parse.cxx (parser::parse_probe_point): Add checking pointer t.
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.cxx b/parse.cxx
index 2aca32fb..a829fa10 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -1343,14 +1343,14 @@ parser::parse_probe_point ()
{
next ();
t = peek ();
- if (! (t->type == tok_operator && t->content == "("))
+ if (t && ! (t->type == tok_operator && t->content == "("))
throw parse_error ("expected '('");
next ();
pl->condition = parse_expression ();
t = peek ();
- if (! (t->type == tok_operator && t->content == ")"))
+ if (t && ! (t->type == tok_operator && t->content == ")"))
throw parse_error ("expected ')'");
next ();
t = peek ();