inspector: fix minor issues
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
- inspector
Description of change
Fixes a couple of minor issues found during static analysis.