Re: getloadavg: check for c_strtod errors

2009-01-21 Thread Jim Meyering
Bruno Haible wrote: > getloadavg uses c_strtod, but does not completely chcek against all error > conditions (such as EINVAL or ENOMEM). Here's a proposed patch to that effect. > > The strtod documentation in POSIX says: > "Since 0 is returned on error and is also a valid return on success, an >

getloadavg: check for c_strtod errors

2009-01-21 Thread Bruno Haible
Hi Jim, getloadavg uses c_strtod, but does not completely chcek against all error conditions (such as EINVAL or ENOMEM). Here's a proposed patch to that effect. The strtod documentation in POSIX says: "Since 0 is returned on error and is also a valid return on success, an application wishing