Skip to content

Commit

Permalink
Fixed|libcore|Info: Parsing an empty Info list
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 20, 2016
1 parent ada6b6c commit 647e661
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doomsday/sdk/libcore/src/data/info.cpp
Expand Up @@ -465,6 +465,12 @@ DENG2_PIMPL(Info)
// Move past the opening angle bracket.
nextToken();

if(peekToken() == ">")
{
nextToken();
return element.take();
}

forever
{
element->add(parseValue());
Expand Down

0 comments on commit 647e661

Please sign in to comment.