Change-Id: I456a6c6826ed542c7d60146a6ebd66f126a66dce
Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
#include "InstallerUtil.h"
-#define OSP_INSTALLER_VERSION "version=[20130411.1]"
+#define OSP_INSTALLER_VERSION "version=[20130412.1]"
#define DIR_BIN L"/bin"
#define DIR_INFO L"/info"
if (readBytes > 0)
{
ByteBuffer buffer;
- buffer.Construct((const byte*)pBuf.get(), 0, readBytes, bufSize);
+ r = buffer.Construct((const byte*)pBuf.get(), 0, readBytes, bufSize);
+ TryReturn(!IsFailed(r), false, "buffer.Construct() is failed.");
r = pHash->Update(buffer);
TryReturn(!IsFailed(r), false, "pHash->Update() is failed.");
for (int i = 0; i < argc; i++)
{
const char* pStr = argv[i];
- String cmd(pStr);
- buf.Append(cmd);
- if (i != argc - 1)
+ if (pStr)
{
- buf.Append(" ");
+ String cmd(pStr);
+ buf.Append(cmd);
+ if (i != argc - 1)
+ {
+ buf.Append(" ");
+ }
}
}