summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-04-03 13:56:27 +0000
committerFrank Schönheit <fs@openoffice.org>2001-04-03 13:56:27 +0000
commit22184ce94c598797c92b546adac06e2ca72894ca (patch)
treee75986beef15e5fa4366c082527dc3a3e795b6d1 /configmgr
parentb4f32678710852507179bb42aaf3d654425d5a3a (diff)
isValidName now reject empty names
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/treemgr/configpath.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/configmgr/source/treemgr/configpath.cxx b/configmgr/source/treemgr/configpath.cxx
index 17237708b0a0..faffb93c9cd4 100644
--- a/configmgr/source/treemgr/configpath.cxx
+++ b/configmgr/source/treemgr/configpath.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: configpath.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: armin $ $Date: 2001-03-08 09:04:02 $
+ * last change: $Author: fs $ $Date: 2001-04-03 14:56:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -165,6 +165,8 @@ namespace
{
sal_Unicode const* const pStr = sName.getStr();
sal_Unicode const* const pEnd = pStr + sName.getLength();
+ if (pStr == pEnd)
+ return false;
for (sal_Unicode const* pValidate = pStr; pValidate != pEnd; ++pValidate)
{