summaryrefslogtreecommitdiff
path: root/plugins/CmdLine/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CmdLine/src/utils.cpp')
-rw-r--r--plugins/CmdLine/src/utils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/CmdLine/src/utils.cpp b/plugins/CmdLine/src/utils.cpp
index 6f0dba3271..f7f08be649 100644
--- a/plugins/CmdLine/src/utils.cpp
+++ b/plugins/CmdLine/src/utils.cpp
@@ -98,7 +98,6 @@ int MyPUShowMessage(char *lpzText, BYTE kind)
char *BinToHex(int size, PBYTE data)
{
char *szresult = NULL;
- char buffer[32] = {0}; //should be more than enough
int maxSize = size * 2 + HEX_SIZE + 1;
szresult = (char *) new char[ maxSize ];
mir_snprintf(szresult, maxSize, "%0*X", HEX_SIZE, size);
@@ -344,7 +343,7 @@ HANDLE GetContactFromID(TCHAR *szID, char *szProto)
if ((szHandle) && ((_tcsicmp(szHandle, szID) == 0) || (_tcsicmp(dispName, szID) == 0)) && ((szProto == NULL) || (_stricmp(szProto, cProtocol) == 0)))
found = 1;
- if (szHandle) free(szHandle);
+ free(szHandle);
if (found) return hContact;
}