Carl Shapiro pushed to branch master at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/lisp/elf.c
    ... ... @@ -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
         }