Browse Source

BUG: Even more VS8 issues

Andy Cedilnik 19 years ago
parent
commit
ff50bb9f77
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/cmSystemTools.cxx

+ 4 - 0
Source/cmSystemTools.cxx

@@ -1322,6 +1322,10 @@ std::string cmSystemTools::MakeXMLSafe(const char* str)
         }
         }
       }
       }
     }
     }
+  if ( result.size() == 0 )
+    {
+    return "";
+    }
   return std::string(&*result.begin(), result.size());
   return std::string(&*result.begin(), result.size());
 }
 }