Raymond Toy pushed to branch issue-306-lisp.c at cmucl / cmucl
Commits:
-
85f8ed4e
by Raymond Toy at 2024-07-25T06:49:51-07:00
1 changed file:
Changes:
... | ... | @@ -758,15 +758,13 @@ main(int argc, const char *argv[], const char *envp[]) |
758 | 758 | * neither are set, set cmucllib to our default search path.
|
759 | 759 | */
|
760 | 760 | if (lib != NULL) {
|
761 | - cmucllib = strdup(lib);
|
|
762 | - check_ptr(cmucllib, "No space for strdup(lib)");
|
|
761 | + cmucllib = lib;
|
|
763 | 762 | } else {
|
764 | 763 | char *libvar;
|
765 | 764 | |
766 | 765 | libvar = getenv("CMUCLLIB");
|
767 | 766 | if (libvar != NULL) {
|
768 | - cmucllib = strdup(libvar);
|
|
769 | - check_ptr(cmucllib, "No space for strdup(libvar)");
|
|
767 | + cmucllib = libvar;
|
|
770 | 768 | } else {
|
771 | 769 | /*
|
772 | 770 | * The following doesn't make sense for executables. They
|