]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Dump Python extension
authorrnv <rnv@opencascade.com>
Tue, 25 Nov 2008 13:53:22 +0000 (13:53 +0000)
committerrnv <rnv@opencascade.com>
Tue, 25 Nov 2008 13:53:22 +0000 (13:53 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx

index 6ec8e81348f9e2233b9d010df1dd8737557c438a..762f2e766ae8cc17fd8d0e231225a7f55634c8db 100644 (file)
@@ -246,7 +246,7 @@ vector<string> SALOMEDSImpl_Tool::splitStringWithEmpty(const string& theValue, c
   vector<string> aResult;
   if(theValue[0] == sep ) aResult.push_back(string());
   int pos = theValue.find(sep);
-  if(pos < 0) {
+  if(pos < 0 && theValue.size() > 0) {
     aResult.push_back(theValue);
     return aResult;
   }