From b950fac30f62f431328a9901a7352f3f6ed5d9e4 Mon Sep 17 00:00:00 2001
From: Jiban Prakash
Date: Mon, 29 Apr 2013 14:35:25 +0530
Subject: [PATCH] fixed prevent issues CID:52041
Change-Id: Ifb8abdccfe1e9250e4bc903c60a2f6c78dac49cc
Signed-off-by: Jiban Prakash
---
src/app/FApp_AppArg.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/app/FApp_AppArg.cpp b/src/app/FApp_AppArg.cpp
index f1796ba..4313e56 100755
--- a/src/app/FApp_AppArg.cpp
+++ b/src/app/FApp_AppArg.cpp
@@ -443,7 +443,9 @@ BundleIterFnCb(const char* pKey, const int type, const bundle_keyval_t* pVal, vo
result r = pBuffer->Construct(size);
SysTryLog(NID_IO, r == E_SUCCESS, "Constructing pBuffer is failed.");
- pBuffer->SetArray((const byte*)pStr, 0, size);
+ r = pBuffer->SetArray((const byte*)pStr, 0, size);
+ SysTryLog(NID_IO, r == E_SUCCESS, "SetArray()for ByteBuffer is failed.");
+
pBuffer->Flip();
pMap->Add(new (std::nothrow) String(pKey), pBuffer);
--
2.7.4