Fix to harness_common.c Coverity errors.