Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void EditList_OnCommand(....)
- {
- ...
- if(l=dynamic_cast<StaticList*>(*list))
- if(l->File!=file) {
- l->File=file;
- g_ret|=LISTS_NEEDRELOAD;
- }
- else {
- delete *list;
- *list=l=new StaticList;
- l->File=file;
- g_ret|=LISTS_NEEDRELOAD;
- }
- ...
- }
- This suspicious code was found in peerblock project by PVS-Studio static code analyzer.
- Warning message is:
- V563 It is possible that this 'else' branch must apply to the previous 'if' statement. peerblock editlistproc.cpp 91
- 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