summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--messages.cpp2
-rw-r--r--utilities.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/messages.cpp b/messages.cpp
index 47f2669..5c1159a 100644
--- a/messages.cpp
+++ b/messages.cpp
@@ -37,7 +37,7 @@ int RecvMsgSvc(WPARAM w, LPARAM l)
wchar_t *tmp = mir_utf8decodeW(msg);
wstring str = tmp;
mir_free(tmp);
- wstring::size_type s1, s2;
+ wstring::size_type s1 = wstring::npos, s2 = wstring::npos;
if((str.find(_T("-----END PGP PUBLIC KEY BLOCK-----")) != wstring::npos) && (str.find(_T("-----BEGIN PGP PUBLIC KEY BLOCK-----")) != wstring::npos))
{
diff --git a/utilities.cpp b/utilities.cpp
index 480f9b6..85deb5c 100644
--- a/utilities.cpp
+++ b/utilities.cpp
@@ -339,8 +339,8 @@ static JABBER_HANDLER_FUNC SendHandler(IJabberInterface *ji, HXML node, void *pU
{
if(_tcsstr(str, _T("-----BEGIN PGP MESSAGE-----")) && _tcsstr(str, _T("-----END PGP MESSAGE-----")))
{
- xi.setText(local_node, _T("This message is encrypted."));
wstring data = str;
+ xi.setText(local_node, _T("This message is encrypted."));
wstring::size_type p1 = data.find(_T("-----BEGIN PGP MESSAGE-----")) + _tcslen(_T("-----BEGIN PGP MESSAGE-----"));
if(data.find(_T("Version: "), p1) != wstring::npos)
{