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

MFC after:	3 days
This commit is contained in:
jmallett 2002-09-04 01:12:39 +00:00
parent de510133e2
commit eadd2de4a6

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