Skip to content

Commit

Permalink
Fixed: Logic bug in FileDirectory::addPathNodes() if the whole direct…
Browse files Browse the repository at this point in the history
…ory is relative

Presently we don't use relative FileDirectorys so this was benign.
  • Loading branch information
danij-deng committed Sep 8, 2012
1 parent e5e1f14 commit 183e87c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doomsday/engine/portable/src/filedirectory.cpp
Expand Up @@ -176,10 +176,8 @@ de::PathDirectoryNode* de::FileDirectory::addPathNodes(const ddstring_t* rawPath
else
{
// Do not add relative paths.
if(!F_IsAbsolute(rawPath))
{
return NULL;
}
path = rawPath;
if(!F_IsAbsolute(path)) return NULL;
}

de::PathDirectoryNode* node = insert(Str_Text(path), '/');
Expand Down

0 comments on commit 183e87c

Please sign in to comment.