[SIGAR-114] set errno=0 before calling strto functions

This commit is contained in:
Doug MacEachern 2008-07-11 23:22:10 +00:00
parent aa33543b58
commit cb61c1eacd
1 changed files with 1 additions and 0 deletions

View File

@ -1220,6 +1220,7 @@ static int ptql_branch_init_port(ptql_parse_branch_t *parsed,
}
branch->op_flags |= PTQL_OP_FLAG_PID;
SIGAR_CLEAR_ERRNO();
branch->data.ui32 = strtoul(parsed->value, &ptr, 10);
if (strtonum_failed(parsed->value, ptr)) {
return PTQL_ERRNAN;