Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int set_view_property(....)
- {
- BOOL status = FALSE;
- ....
- status = setGraphicObjectProperty(
- pobjUID, __GO_VIEW__, &viewType, jni_int, 1);
- if (status = TRUE)
- {
- return SET_PROPERTY_SUCCEED;
- }
- else
- {
- Scierror(999, _("'%s' property does not exist ")
- _("for this handle.\n"), "view");
- return SET_PROPERTY_ERROR ;
- }
- ....
- }
- This suspicious code was found in Scilab project by PVS-Studio static code analyzer.
- Warning message is:
- V559 Suspicious assignment inside the condition expression of 'if' operator: status = 1. set_view_property.c 61
- 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