changeset 2263:dafbde8087e6

[project @ 1996-05-23 18:44:40 by jwe]
author jwe
date Thu, 23 May 1996 18:45:47 +0000
parents 1300df4a33d6
children e9702bdc22e2
files src/syscalls.cc
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/syscalls.cc	Thu May 23 06:49:32 1996 +0000
+++ b/src/syscalls.cc	Thu May 23 18:45:47 1996 +0000
@@ -313,7 +313,7 @@
 link, returns information about the link itself, not the file that it\n\
 points to.")
 {
-  octave_value retval;
+  octave_value_list retval;
 
   if (args.length () == 1)
     {
@@ -323,6 +323,7 @@
 	{
 	  file_stat fs (fname, false);
 
+	  if (fs)
 	    {
 	      retval(2) = string ();
 	      retval(1) = 0.0;