Carl Shapiro pushed to branch master at cmucl / cmucl
Commits:
-
57c9f9b7
by Carl Shapiro at 2024-04-25T12:30:13-07:00
-
99abb703
by Carl Shapiro at 2024-04-26T01:53:53+00:00
1 changed file:
Changes:
... | ... | @@ -442,7 +442,7 @@ map_core_sections(const char *exec_name) |
442 | 442 | image_static_space_size,
|
443 | 443 | image_read_only_space_size;
|
444 | 444 | |
445 | - if (!(exec_fd = open(exec_name, O_RDONLY))) {
|
|
445 | + if ((exec_fd = open(exec_name, O_RDONLY)) == -1) {
|
|
446 | 446 | perror("Can't open executable!");
|
447 | 447 | exit(-1);
|
448 | 448 | }
|