1a3036b fix bugs detected by static analysis

Authored and Committed by kdudka 5 years ago
    fix bugs detected by static analysis
    
        
file modified
+8 -1