diff src/file-io.cc @ 2432:874f758eade5

[project @ 1996-10-26 16:37:36 by jwe]
author jwe
date Sat, 26 Oct 1996 16:37:37 +0000
parents a45c7d64b5e3
children f667d7ec08b9
line wrap: on
line diff
--- a/src/file-io.cc
+++ b/src/file-io.cc
@@ -343,9 +343,7 @@
   if (nargin == 1)
     {
       if (args(0).is_string () && args(0).string_value () == "all")
-	{
-	  return octave_stream_list::open_file_numbers ();
-	}
+	retval(0) = octave_stream_list::open_file_numbers ();
       else
 	{
 	  string_vector tmp = octave_stream_list::get_info (args(0));
@@ -356,9 +354,9 @@
 	      retval(1) = tmp(1);
 	      retval(0) = tmp(0);
 	    }
+	}
 
-	  return retval;
-	}
+      return retval;
     }
 
   if (nargin > 0 && nargin < 4)