[sword-svn] r2242 - trunk/src/mgr
scribe at crosswire.org
scribe at crosswire.org
Sun Feb 8 18:41:15 MST 2009
Author: scribe
Date: 2009-02-08 18:41:14 -0700 (Sun, 08 Feb 2009)
New Revision: 2242
Modified:
trunk/src/mgr/swmgr.cpp
Log:
fixed a bug caused from recent changes
Modified: trunk/src/mgr/swmgr.cpp
===================================================================
--- trunk/src/mgr/swmgr.cpp 2009-02-08 15:58:24 UTC (rev 2241)
+++ trunk/src/mgr/swmgr.cpp 2009-02-09 01:41:14 UTC (rev 2242)
@@ -552,7 +552,7 @@
SWLog::getSystemLog()->logDebug("Checking $ALLUSERSPROFILE/Application Data/sword/...");
SWBuf envallusersdir = getenv("ALLUSERSPROFILE");
- if (envallusersdir != NULL) {
+ if (envallusersdir.length()) {
SWLog::getSystemLog()->logDebug("found (%s).", envallusersdir.c_str());
path = envallusersdir;
if ((envallusersdir[envallusersdir.length()-1] != '\\') && (envallusersdir[envallusersdir.length()-1] != '/'))
More information about the sword-cvs
mailing list