Add CTLTYPE_QUAD to the list of types for which we don't want an empty
value. All the other numeric types are doing it . . .
This commit is contained in:
parent
f2b1c1580a
commit
4d90830fd8
@ -214,7 +214,8 @@ parse(char *string)
|
||||
if ((kind & CTLTYPE) == CTLTYPE_INT ||
|
||||
(kind & CTLTYPE) == CTLTYPE_UINT ||
|
||||
(kind & CTLTYPE) == CTLTYPE_LONG ||
|
||||
(kind & CTLTYPE) == CTLTYPE_ULONG) {
|
||||
(kind & CTLTYPE) == CTLTYPE_ULONG ||
|
||||
(kind & CTLTYPE) == CTLTYPE_QUAD) {
|
||||
if (strlen(newval) == 0)
|
||||
errx(1, "empty numeric value");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user