Commit 2c39600e authored by Francis Dupont's avatar Francis Dupont
Browse files

[4125] Fixed variable init (BTW a false positive as ctx.error throws)

parent 14e10636
......@@ -595,7 +595,7 @@ namespace isc { namespace eval {
case 6:
#line 90 "parser.yy" // lalr1.cc:859
{
int n;
int n = 0;
try {
n = boost::lexical_cast<int>(yystack_[1].value.as< std::string > ());
} catch (const boost::bad_lexical_cast &) {
......
......@@ -88,7 +88,7 @@ string_expr : STRING
}
| OPTION "[" INTEGER "]"
{
int n;
int n = 0;
try {
n = boost::lexical_cast<int>($3);
} catch (const boost::bad_lexical_cast &) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment