Mercurial > hg > octave-nkf
changeset 15751:72968fb32c82
Avoid future timestamp warning on non-existent shared libs
* liboctave/util/oct-shlib.cc (octave_shlib::shlib_rep): Check file
existence before comparing timestamp.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Fri, 07 Dec 2012 19:34:19 -0500 |
parents | 05c781cca57e |
children | f96faf028d90 |
files | liboctave/util/oct-shlib.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/util/oct-shlib.cc +++ b/liboctave/util/oct-shlib.cc @@ -75,7 +75,7 @@ octave_shlib::shlib_rep::is_out_of_date (void) const { file_stat fs (file); - return fs.is_newer (tm_loaded); + return (fs && fs.is_newer (tm_loaded)); } void @@ -83,7 +83,7 @@ { // We can't actually reload the library, but we'll pretend we did. file_stat fs (file); - if (fs.is_newer (tm_loaded)) + if (fs && fs.is_newer (tm_loaded)) { tm_loaded = fs.mtime ();