Fix two coverity false positives

Branch coverity in my repo