intel / intel-cmt-cat

User space software for Intel(R) Resource Director Technology
http://www.intel.com/content/www/us/en/architecture-and-technology/resource-director-technology.html
Other
693 stars 183 forks source link

minor static analysis scan-build warning fixes #202

Closed ColinIanKing closed 2 years ago

ColinIanKing commented 2 years ago

Running static analysis with clang's scan-build found a couple of issues, one set related to incorrect use of strncpy that can be easily fixed with strncpy and another issue with a redundant initialization of a variable (minor code clean-up). I generally run static analysis on code that I package for Debian to ensure it's as bug free as possible.

Tested on a Numa Intel camelback 12 core SDP box with ubuntu 22.04 - ran pqos.