Fixed minor warning with newer version of gcc.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1568 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2008-12-20 23:42:30 +00:00
parent 5dc7cba2a8
commit bf993f9284
1 changed files with 2 additions and 3 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: FSNodePOSIX.cxx,v 1.14 2008-03-14 23:52:17 stephena Exp $
// $Id: FSNodePOSIX.cxx,v 1.15 2008-12-20 23:42:30 stephena Exp $
//
// Based on code from ScummVM - Scumm Interpreter
// Copyright (C) 2002-2004 The ScummVM project
@ -98,9 +98,8 @@ AbstractFilesystemNode* FilesystemNode::getNodeForPath(const string& path)
POSIXFilesystemNode::POSIXFilesystemNode()
{
char buf[MAXPATHLEN];
getcwd(buf, MAXPATHLEN);
_path = getcwd(buf, MAXPATHLEN) == buf ? buf : "";
_path = buf;
_displayName = lastPathComponent(_path);
_path += '/';
_isValid = true;