mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 08:52:46 +00:00
Die on -D=foo, when parsing options - we can't let someone define (nil).
MFC after: 3 days
This commit is contained in:
parent
d87e0e8e23
commit
c624d24df3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102917
@ -204,6 +204,8 @@ main(int argc, char *argv[])
|
||||
for (p = optarg; *p; p++)
|
||||
if (*p == '=')
|
||||
break;
|
||||
if (p == optarg)
|
||||
errx(1, "null variable cannot be defined");
|
||||
if (*p)
|
||||
*p++ = EOS;
|
||||
dodefine(optarg, p);
|
||||
|
Loading…
Reference in New Issue
Block a user