diff options
author | Dongeup Ham <dongeup.ham@samsung.com> | 2012-12-27 13:58:15 +0900 |
---|---|---|
committer | Dongeup Ham <dongeup.ham@samsung.com> | 2012-12-27 13:58:15 +0900 |
commit | eb04667e6caaf20a7016ec9122ba9b54a2ed7b2d (patch) | |
tree | 669bbb9a4fad38b1252dc8da3caa6d08df0f1589 /src/XmlHandler/XmlHandler.cpp | |
parent | 7111af69a59fcfebeef7248b96f76c6e8f0a1eac (diff) | |
download | installer-eb04667e6caaf20a7016ec9122ba9b54a2ed7b2d.tar.gz installer-eb04667e6caaf20a7016ec9122ba9b54a2ed7b2d.tar.bz2 installer-eb04667e6caaf20a7016ec9122ba9b54a2ed7b2d.zip |
Prevent issues are fixed.
Change-Id: I2fb8620fa55a66b3cfca69bc42837bf305bdb1f3
Signed-off-by: Dongeup Ham <dongeup.ham@samsung.com>
Diffstat (limited to 'src/XmlHandler/XmlHandler.cpp')
-rwxr-xr-x[-rw-r--r--] | src/XmlHandler/XmlHandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XmlHandler/XmlHandler.cpp b/src/XmlHandler/XmlHandler.cpp index 5654c4c..b958d7d 100644..100755 --- a/src/XmlHandler/XmlHandler.cpp +++ b/src/XmlHandler/XmlHandler.cpp @@ -363,11 +363,11 @@ XmlHandler::SetElementName(const char *pElementName) __pElementName = null; } - __pElementName = new char[strlen(pElementName)+1]; + __pElementName = new (std::nothrow) char[strlen(pElementName)+1]; TryReturn(__pElementName, false, "[osp-installer] __pElementName is null"); strcpy(__pElementName, pElementName); - __elementStack.Push(*new String(pElementName)); + __elementStack.Push(*new (std::nothrow) String(pElementName)); return true; } |