summaryrefslogtreecommitdiff
path: root/src/modules/protocols
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-11-13 20:02:40 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-11-13 20:02:40 +0000
commitca9e826e27ec51c2cff31545204bb462cdd9fb63 (patch)
treecae073a63e0373c7d22f165b9f2e33d3ef018b07 /src/modules/protocols
parent71caeef7aa7f9be45ade54549f21be95864268e7 (diff)
not needed NULL checks
git-svn-id: http://svn.miranda-ng.org/main/trunk@10984 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/protocols')
-rw-r--r--src/modules/protocols/protoint.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/protocols/protoint.cpp b/src/modules/protocols/protoint.cpp
index e97f25c38d..bbe6a01e19 100644
--- a/src/modules/protocols/protoint.cpp
+++ b/src/modules/protocols/protoint.cpp
@@ -265,10 +265,8 @@ struct DEFAULT_PROTO_INTERFACE : public PROTO_INTERFACE
PROTO_INTERFACE* AddDefaultAccount(const char* szProtoName)
{
PROTO_INTERFACE* ppi = new DEFAULT_PROTO_INTERFACE;
- if (ppi != NULL) {
- ppi->m_szModuleName = mir_strdup(szProtoName);
- ppi->m_tszUserName = mir_a2t(szProtoName);
- }
+ ppi->m_szModuleName = mir_strdup(szProtoName);
+ ppi->m_tszUserName = mir_a2t(szProtoName);
return ppi;
}