Fixed Coverity errors that were in harness_common.c