NULL_RETURNS paranoid check [CID-66]

This commit is contained in:
Love Hornquist Astrand
2009-07-30 07:50:18 +02:00
parent 896391a56b
commit 3f3b499c39

View File

@@ -453,6 +453,8 @@ main(int argc, char **argv)
for (j = 0; j < i; j++) {
char *p = strchr(newenv[j], '=');
if (p == NULL)
errx(1, "enviroment '%s' missing '='", newenv[j]);
*p++ = 0;
esetenv (newenv[j], p, 1);
}