fix a crash in the msvc8 backend

svn path=/trunk/; revision=25957
This commit is contained in:
Christoph von Wittich 2007-03-02 20:30:12 +00:00
parent ae80dd6422
commit 46921a9a8f

View file

@ -71,9 +71,16 @@ MSVCBackend::_generate_vcproj ( const Module& module )
size_t i;
string vcproj_file = VcprojFileName(module);
string computername;
string username;
if (getenv ( "USERNAME" ) != NULL)
username = getenv ( "USERNAME" );
if (getenv ( "COMPUTERNAME" ) != NULL)
computername = getenv ( "COMPUTERNAME" );
else if (getenv ( "HOSTNAME" ) != NULL)
computername = getenv ( "HOSTNAME" );
string username = getenv ( "USERNAME" );
string computername = getenv ( "COMPUTERNAME" );
string vcproj_file_user = "";
if ((computername != "") && (username != ""))