imgtools/romtools/rombuild/rombuild.cpp
changeset 705 67449e76cb84
parent 700 c22eff170fac
child 710 44ac166bbdbc
--- a/imgtools/romtools/rombuild/rombuild.cpp	Thu Nov 18 13:43:06 2010 +0800
+++ b/imgtools/romtools/rombuild/rombuild.cpp	Tue Nov 23 14:07:04 2010 +0800
@@ -34,7 +34,7 @@
 
 static const TInt RombuildMajorVersion=2;
 static const TInt RombuildMinorVersion=19;
-static const TInt RombuildPatchVersion=0;
+static const TInt RombuildPatchVersion=1;
 static TBool SizeSummary=EFalse;
 static TPrintType SizeWhere=EAlways;
 static string compareROMName = "";
@@ -490,7 +490,7 @@
 		}
 		return 0;
 	}
-	if (romlogfile[romlogfile.size()-1] == '\\' || romlogfile[romlogfile.size()-1] == '/')
+	if (romlogfile.empty() || romlogfile[romlogfile.size()-1] == '\\' || romlogfile[romlogfile.size()-1] == '/')
 		romlogfile += "ROMBUILD.LOG";
  	H.SetLogFile(romlogfile.c_str());
 	ObeyFileReader *reader=new ObeyFileReader(filename.c_str());