Fix search_path to fill stat_buf when given an absolute pathname
authorMark H Weaver <mhw@netris.org>
Wed, 1 Feb 2012 21:35:32 +0000 (16:35 -0500)
committerMark H Weaver <mhw@netris.org>
Thu, 2 Feb 2012 01:58:55 +0000 (20:58 -0500)
commitc12da2be81d5a77040f2e75a2a0646837b29c4f5
tree14c7034e9c2b7b5ded908f489ceca94a4b6f903d
parent52de2ab45ab77ca5a2d6443278c7f654cdc60fb2
Fix search_path to fill stat_buf when given an absolute pathname

* libguile/load.c (search_path): When the provided 'filename' is an
  absolute pathname, perform a 'stat' on that pathname to fill the
  'stat_buf'.  Previously, 'stat_buf' was left uninitialized in this
  case, even though 'scm_primitive_load_path' assumes that 'stat_buf'
  will be filled.  Update the header comment to explicitly specify that
  'stat_buf' will be filled.  Also 'goto end' in a few failure cases
  instead of replicating its code.
libguile/load.c