Explorar o código

BUG: Even more VS8 issues

Andy Cedilnik %!s(int64=19) %!d(string=hai) anos
pai
achega
ff50bb9f77
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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());
 }