Assign 0.0 to the variable passed to getfloating() if the argument is missing.
MFC after: 1 week
This commit is contained in:
parent
283f4553ed
commit
5ec2b8dc8a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user