mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
Do not pass NULL to setenv in the test harness.
This commit is contained in:
parent
43e3c22ae4
commit
a39d299df4
@ -128,7 +128,8 @@ int main(int argc, char **argv) {
|
|||||||
status = alloca(sizeof(int)*argc);
|
status = alloca(sizeof(int)*argc);
|
||||||
char *config = getenv("LVM_TEST_CONFIG"),
|
char *config = getenv("LVM_TEST_CONFIG"),
|
||||||
*config_debug;
|
*config_debug;
|
||||||
asprintf(&config_debug, "%s\n%s", config ? config : "", "log {\n verbose=4\n }");
|
config = config ? config : "";
|
||||||
|
asprintf(&config_debug, "%s\n%s\n", config, "log { verbose=4 }");
|
||||||
|
|
||||||
if (socketpair(PF_UNIX, SOCK_STREAM, 0, fds)) {
|
if (socketpair(PF_UNIX, SOCK_STREAM, 0, fds)) {
|
||||||
perror("socketpair");
|
perror("socketpair");
|
||||||
|
Loading…
Reference in New Issue
Block a user