Merge pull request #3038 from pks-t/fix-regcomp-retval-check Fix checking of return value for regcomp.