diff -r 02d78c9f018e -r 3f65fd25dfd4 imgtools/romtools/rofsbuild/rofsbuild.cpp --- a/imgtools/romtools/rofsbuild/rofsbuild.cpp Wed Oct 13 17:57:18 2010 +0800 +++ b/imgtools/romtools/rofsbuild/rofsbuild.cpp Mon Oct 18 16:16:46 2010 +0800 @@ -47,7 +47,7 @@ static const TInt RofsbuildMajorVersion=2; static const TInt RofsbuildMinorVersion=14; -static const TInt RofsbuildPatchVersion=1; +static const TInt RofsbuildPatchVersion=2; static TBool SizeSummary=EFalse; static TPrintType SizeWhere=EAlways; @@ -582,8 +582,12 @@ } // Process Rofs Obey files. if(obeyFileName) { - if (cmdlogfile[cmdlogfile.size()-1] == '\\' || cmdlogfile[cmdlogfile.size()-1] == '/') - cmdlogfile += "ROFSBUILD.LOG"; + if(cmdlogfile.empty()) + cmdlogfile.assign("ROFSBUILD.LOG"); + else if (cmdlogfile[cmdlogfile.length()-1] == '\\' || cmdlogfile[cmdlogfile.length()-1] == '/') { + cmdlogfile += "ROFSBUILD.LOG" ; + } + H.SetLogFile(cmdlogfile.c_str()); ObeyFileReader *reader = new ObeyFileReader(obeyFileName); if (!reader->Open())