lib/log: Coverity Scan nits

Fixes CIDs 355763 and 355764. Also fixes a minor typo.

Merge request reports

Loading