Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int plh_read_pl_folder(PPLH_PL_FOLDER_INFO pconfig) {
- ...
- WIN32_FIND_DATA file_data;
- ...
- memset(
- &file_data,
- 0,
- sizeof(&file_data)
- );
- ...
- }
- This is what should have been written here: sizeof(file_data)
- This suspicious code was found in iecsdk project by PVS-Studio static code analyzer.
- Warning message is:
- V568 It's odd that the argument of sizeof() operator is the '& file_data' expression. pl_csv_logger productivity_link_helper.c 1667
- 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