Assign 0.0 to the variable passed to getfloating() if the argument is missing.

MFC after:	1 week
This commit is contained in:
Stefan Farfeleder 2005-04-13 19:54:03 +00:00
parent 283f4553ed
commit 5ec2b8dc8a

View File

@ -495,8 +495,10 @@ getfloating(long double *dp, int mod_ldbl)
char *ep;
int rval;
if (!*gargv)
if (!*gargv) {
*dp = 0.0;
return (0);
}
if (**gargv == '"' || **gargv == '\'') {
*dp = asciicode();
return (0);