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:
parent
fcffa790e9
commit
8c423a998e
@ -473,7 +473,7 @@ getdouble(double *dp)
|
||||
*dp = asciicode();
|
||||
return (0);
|
||||
}
|
||||
rval = 1;
|
||||
rval = 0;
|
||||
errno = 0;
|
||||
*dp = strtod(*gargv, &ep);
|
||||
if (ep == *gargv) {
|
||||
|
Loading…
Reference in New Issue
Block a user