Die on -D=foo, when parsing options - we can't let someone define (nil).

MFC after:	3 days
This commit is contained in:
Juli Mallett 2002-09-04 01:12:39 +00:00
parent d87e0e8e23
commit c624d24df3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102917

View File

@ -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);