mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue