summaryrefslogtreecommitdiff
path: root/cosv/source/storage/ploc.cxx
diff options
context:
space:
mode:
authorNikolai Pretzell <np@openoffice.org>2002-05-14 07:08:46 +0000
committerNikolai Pretzell <np@openoffice.org>2002-05-14 07:08:46 +0000
commit41022e5f7242a979eb757a5eb51b45d5fba6d200 (patch)
tree21e3588c9a9b1b4ee40a7207c34f117c18fc276b /cosv/source/storage/ploc.cxx
parent5e64ff8760e61b03b13726ab90f14cbf6324e309 (diff)
#98964#, New layout for IDL-docu and some fixes for gcc and in Filehandling
Diffstat (limited to 'cosv/source/storage/ploc.cxx')
-rw-r--r--cosv/source/storage/ploc.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/cosv/source/storage/ploc.cxx b/cosv/source/storage/ploc.cxx
index c3d86658db5c..3c6509ab6757 100644
--- a/cosv/source/storage/ploc.cxx
+++ b/cosv/source/storage/ploc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ploc.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: np $ $Date: 2002-03-08 14:25:40 $
+ * last change: $Author: np $ $Date: 2002-05-14 08:08:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -121,9 +121,12 @@ Path::Set( const char * i_sPath,
if (NOT i_bPathIsAlwaysDir)
{
- pRestPath = strrchr( pRestPath, *i_sDelimiter );
- if ( NOT no_str(pRestPath) )
- sFile = pRestPath + 1;
+ const char * pFile = strrchr( pRestPath, *i_sDelimiter );
+ if (pFile == 0)
+ pFile = pRestPath;
+ else
+ pFile++;
+ sFile = pFile;
}
}