Fixed Some Issues Reported by Coverity

Fixed some issues reported by Coverity.

Edited by Karel Slaný

Merge request reports

Loading