From bf993f9284798052ea5810b3e30014072e42654a Mon Sep 17 00:00:00 2001 From: stephena Date: Sat, 20 Dec 2008 23:42:30 +0000 Subject: [PATCH] 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 --- stella/src/unix/FSNodePOSIX.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stella/src/unix/FSNodePOSIX.cxx b/stella/src/unix/FSNodePOSIX.cxx index 4a26246c2..869da0d77 100644 --- a/stella/src/unix/FSNodePOSIX.cxx +++ b/stella/src/unix/FSNodePOSIX.cxx @@ -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;