diff options
Diffstat (limited to 'plugins/YahooGroups/src/utils.cpp')
-rw-r--r-- | plugins/YahooGroups/src/utils.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/plugins/YahooGroups/src/utils.cpp b/plugins/YahooGroups/src/utils.cpp index 383d001007..a811bc5e64 100644 --- a/plugins/YahooGroups/src/utils.cpp +++ b/plugins/YahooGroups/src/utils.cpp @@ -226,18 +226,13 @@ TCHAR *GetContactName(MCONTACT hContact, char *szProto) //_debug_message(" contact name %s", ctInfo.pszVal);
TCHAR *buffer;
if (!ret)
- {
- buffer = _tcsdup(ctInfo.pszVal);
- }
+ buffer = _tcsdup(ctInfo.pszVal);
+
mir_free(ctInfo.pszVal);
if (!ret)
- {
- return buffer;
- }
- else{
- return NULL;
- }
- return buffer;
+ return buffer;
+
+ return NULL;
}
void GetContactProtocol(MCONTACT hContact, char *szProto, int size)
@@ -306,12 +301,9 @@ TCHAR *GetContactID(MCONTACT hContact, char *szProto) }
mir_free(ctInfo.pszVal);
if (!ret)
- {
- return buffer;
- }
- else{
- return NULL;
- }
+ return buffer;
+
+ return NULL;
}
MCONTACT GetContactFromID(TCHAR *szID, char *szProto)
|