Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WCHAR szEntryName[ RAS_MaxEntryName + 1 ];
- WCHAR szPhoneNumber[ RAS_MaxPhoneNumber + 1 ];
- WCHAR szCallbackNumber[ RAS_MaxCallbackNumber + 1 ];
- bool wxDialUpManagerMSW::Dial(const wxString& nameOfISP,
- const wxString& username,
- const wxString& password,
- bool async)
- {
- ...
- // default values for other fields
- rasDialParams.szPhoneNumber[0] = '\0';
- rasDialParams.szCallbackNumber[0] = '\0';
- rasDialParams.szCallbackNumber[0] = '\0';
- ...
- }
- Most likely this is what should be written here: rasDialParams.szEntryName[0] = '\0';
- This suspicious code was found in wxWidgets project by PVS-Studio static code analyzer.
- Warning message is:
- V519 The 'rasDialParams.szCallbackNumber[0]' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 832, 833. core dialup.cpp 833
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement