]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-exec-util: do not call setenv with NULL arg
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Apr 2019 07:00:37 +0000 (09:00 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Apr 2019 07:05:02 +0000 (09:05 +0200)
commit04193fb2ae2fd52a367e5437eb10bd28d27535d9
tree5ab14ac5f4b04af16f28266ced55d50f6270eb0c
parent1890c538920f93c39636e6beebc1bf7d0a8bc0a6
test-exec-util: do not call setenv with NULL arg

The comment explains that $PATH might not be set in certain circumstances and
takes steps to handle this case. If we do that, let's assume that $PATH indeed
might be unset and not call setenv("PATH", NULL, 1). It is not clear from the
man page if that is allowed.

CID #1400497.
src/test/test-exec-util.c