fix case in which compiled path had stale .go, but fallback had fresh .go
authorAndy Wingo <wingo@pobox.com>
Fri, 28 Aug 2009 15:12:15 +0000 (17:12 +0200)
committerAndy Wingo <wingo@pobox.com>
Fri, 28 Aug 2009 15:13:09 +0000 (17:13 +0200)
* libguile/load.c (scm_primitive_load_path): If the compiled path was
  out of date, but the fallback path was current, we correctly detected
  that case, but loaded the wrong file. So here fix the typo.

libguile/load.c

index 29ef74a..41db90c 100644 (file)
@@ -752,7 +752,7 @@ SCM_DEFINE (scm_primitive_load_path, "primitive-load-path", 1, 1, 0,
           scm_puts (";;; found fresh local cache at ", scm_current_error_port ());
           scm_display (fallback, scm_current_error_port ());
           scm_newline (scm_current_error_port ());
-          return scm_load_compiled_with_vm (compiled_filename);
+          return scm_load_compiled_with_vm (fallback);
         }
     }