diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c index cc32e4f7c371..a99958e9f350 100644 --- a/usr.bin/printf/printf.c +++ b/usr.bin/printf/printf.c @@ -473,7 +473,7 @@ getdouble(double *dp) *dp = asciicode(); return (0); } - rval = 1; + rval = 0; errno = 0; *dp = strtod(*gargv, &ep); if (ep == *gargv) {