mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 22:33:08 +02:00
Bug Fix - C syntax error in parse.cpp
- Fixed bug where variable instantiation inside a case statement was not scoped, but somehow builds on Leopard, but fails on Fedora Core 10. Thanks to Federico Hernandez.
This commit is contained in:
parent
cc5d44ee9d
commit
f9035eec70
1 changed files with 6 additions and 4 deletions
|
@ -330,11 +330,13 @@ static bool validSequence (
|
||||||
switch (range.size ())
|
switch (range.size ())
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
if (! validId (range[0]))
|
{
|
||||||
return false;
|
if (! validId (range[0]))
|
||||||
|
return false;
|
||||||
|
|
||||||
int id = ::atoi (range[0].c_str ());
|
int id = ::atoi (range[0].c_str ());
|
||||||
ids.push_back (id);
|
ids.push_back (id);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue