From c1fe97abf28589a17bb1ea1e60759649287894f6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jul 2019 12:37:11 +0300 Subject: warning fix --- protocols/JabberG/src/jabber.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protocols/JabberG/src/jabber.cpp b/protocols/JabberG/src/jabber.cpp index 854d565e1f..cbcdfa3861 100755 --- a/protocols/JabberG/src/jabber.cpp +++ b/protocols/JabberG/src/jabber.cpp @@ -71,6 +71,10 @@ static PLUGININFOEX pluginInfoEx = { CMPlugin::CMPlugin() : ACCPROTOPLUGIN("JABBER", pluginInfoEx) { + char tmp[8]; + Utils_GetRandom(tmp, sizeof(tmp)); + bin2hex(tmp, sizeof(tmp), szRandom); + SetUniqueId("jid"); } @@ -156,10 +160,6 @@ int CMPlugin::Load() bPlatform = 0; #endif - char tmp[8]; - Utils_GetRandom(tmp, sizeof(tmp)); - bin2hex(tmp, sizeof(tmp), szRandom); - Miranda_GetVersionText(szCoreVersion, _countof(szCoreVersion)); CallService(MS_UTILS_GETCOUNTRYLIST, (WPARAM)&g_cbCountries, (LPARAM)&g_countries); -- cgit v1.2.3