Make it possible for the %[eEfgG] formats to not result in an error

being reported by /usr/bin/printf.

This bug has been around for 22 months... either nobody uses printf
with floating-point values, or people are forgetting to check their
return codes.

Approved by:	rwatson (mentor)
This commit is contained in:
Colin Percival 2004-03-07 22:22:13 +00:00
parent fcffa790e9
commit 8c423a998e

View File

@ -473,7 +473,7 @@ getdouble(double *dp)
*dp = asciicode();
return (0);
}
rval = 1;
rval = 0;
errno = 0;
*dp = strtod(*gargv, &ep);
if (ep == *gargv) {