Die on -D=foo, when parsing options - we can't let someone define (nil).
MFC after: 3 days
This commit is contained in:
parent
de510133e2
commit
eadd2de4a6
@ -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