Change-Id: I06523a22f94ea8ff53dd9643aa74f90cf93fc671
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
free(imcontext->imdata);
imcontext->imdata = calloc(1, length);
- if (imcontext->imdata)
+ if (imcontext->imdata && data)
memcpy(imcontext->imdata, data, length);
imcontext->imdata_size = length;
}
/* pkgrootpath */
- ret = pkgmgrinfo_pkginfo_get_root_path (pkginfo_handle, &path);
+ pkgmgrinfo_pkginfo_get_root_path (pkginfo_handle, &path);
}
ime_db.languages = "en";
IConvert &
IConvert::operator= (const IConvert & iconvert)
{
+ if (this == &iconvert)
+ return *this;
+
if (m_impl)
delete (m_impl);
m_impl = new IConvertImpl ();
}
SocketAddressImpl & operator = (const SocketAddressImpl &other) {
+ if (this == &other)
+ return *this;
+
m_family = other.m_family;
m_address = other.m_address;
if (m_data)
TransactionReader &
TransactionReader::operator = (const TransactionReader &reader)
{
+ if (this == &reader)
+ return *this;
+
if (m_impl)
delete (m_impl);
m_impl = new TransactionReaderImpl ();