summaryrefslogtreecommitdiff
path: root/plugins/SMS/src/senddlg.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-01-10 12:48:20 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-01-10 12:48:20 +0000
commit82c529fbc16afd118509e5805d26ca2cd79e2ab4 (patch)
treea60541f59b9cb436d88c1087d76aa1ae8f2ed570 /plugins/SMS/src/senddlg.cpp
parented3d8bba1b542e0bbf382a6f2eb4b78147d10bc0 (diff)
SMS:
- Fixed potentially uninitialized variables git-svn-id: http://svn.miranda-ng.org/main/trunk@11813 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SMS/src/senddlg.cpp')
-rw-r--r--plugins/SMS/src/senddlg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SMS/src/senddlg.cpp b/plugins/SMS/src/senddlg.cpp
index d8bbc9b8ce..f1784145b3 100644
--- a/plugins/SMS/src/senddlg.cpp
+++ b/plugins/SMS/src/senddlg.cpp
@@ -142,8 +142,7 @@ INT_PTR CALLBACK SendSmsDlgProc(HWND hWndDlg,UINT message,WPARAM wParam,LPARAM l
SendSMSWindowUpdateAccountList(hWndDlg);
{
- TCHAR tszSign[1024];
- size_t dwSignLen;
+ size_t dwSignLen = 0;
if (DB_SMS_GetByte(NULL,"UseSignature",SMS_DEFAULT_USESIGNATURE))
if (DB_SMS_GetStaticStringW(NULL,"Signature",tszSign,SIZEOF(tszSign),&dwSignLen))
@@ -154,6 +153,7 @@ INT_PTR CALLBACK SendSmsDlgProc(HWND hWndDlg,UINT message,WPARAM wParam,LPARAM l
EnableWindow(GetDlgItem(hWndDlg,IDOK),dwSignLen);
}
+ TCHAR tszSign[1024];
mir_sntprintf(tszSign,SIZEOF(tszSign),_T("%d/%d"),dwSignLen,GetSMSMessageLenMax(hWndDlg));
SetDlgItemText(hWndDlg,IDC_COUNT,tszSign);
}