if (setup != NULL) {
my->setup = malloc(strlen(setup) + 1);
strcpy(my->setup, setup);
- } else if (getenv("SETUP") != NULL) {
- my->setup = malloc(strlen(getenv("SETUP")) + 1);
- strcpy(my->setup, getenv("SETUP"));
} else {
my->setup = NULL;
}
if (setup != NULL) {
my->setup = malloc(strlen(setup) + 1);
strcpy(my->setup, setup);
- } else if (getenv("SETUP") != NULL) {
- my->setup = malloc(strlen(getenv("SETUP")) + 1);
- strcpy(my->setup, getenv("SETUP"));
} else {
my->setup = NULL;
}