pkgconf_trace: fix error return handling In both cases the return value was incremented before checking for the error case.