From 65cb53b68551fde7dafe97f08c90b69f972f93ef Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Mon, 31 Oct 2011 10:19:40 -0500 Subject: FbTk/StringUtil.cc: Don't return mid-routine. Prep for Windows dummy prefix code. --- src/FbTk/StringUtil.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/FbTk/StringUtil.cc b/src/FbTk/StringUtil.cc index ec1f936..ad9739e 100644 --- a/src/FbTk/StringUtil.cc +++ b/src/FbTk/StringUtil.cc @@ -184,8 +184,9 @@ string expandFilename(const string &filename) { // copy from the character after '~' retval += static_cast(filename.c_str() + pos + 1); } - } else - return filename; //return unmodified value + } else { + retval = filename; //return unmodified value + } return retval; } -- cgit v0.11.2