diff src/file-io.cc @ 10250:2d47356a7a1a

use gnulib getcwd module
author John W. Eaton <jwe@octave.org>
date Wed, 03 Feb 2010 03:07:06 -0500
parents 4d433bd2d4dc
children 65b41bc71f09
line wrap: on
line diff
--- a/src/file-io.cc
+++ b/src/file-io.cc
@@ -460,8 +460,8 @@
 	    {
 	      if (! fs.exists ())
 		{
-		  std::string tmp = octave_env::make_absolute
-		    (load_path::find_file (fname), octave_env::getcwd ());
+		  std::string tmp
+                    = octave_env::make_absolute (load_path::find_file (fname));
 
 		  if (! tmp.empty ())
 		    {