changeset 20820:eed8ec05f1c8

always return value from DEFUN functions * load-path.cc (Fpath): Always return something. * pager.cc (Fdiary): Likewise.
author John W. Eaton <jwe@octave.org>
date Mon, 07 Dec 2015 14:29:39 -0500
parents f428cbe7576f
children b169da150702
files libinterp/corefcn/load-path.cc libinterp/corefcn/pager.cc
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/load-path.cc	Mon Dec 07 13:54:01 2015 -0500
+++ b/libinterp/corefcn/load-path.cc	Mon Dec 07 14:29:39 2015 -0500
@@ -2386,6 +2386,8 @@
 
       octave_stdout << "\n";
     }
+
+  return octave_value ();
 }
 
 DEFUN (addpath, args, nargout,
--- a/libinterp/corefcn/pager.cc	Mon Dec 07 13:54:01 2015 -0500
+++ b/libinterp/corefcn/pager.cc	Mon Dec 07 14:29:39 2015 -0500
@@ -573,6 +573,8 @@
           open_diary_file ();
         }
     }
+
+  return octave_value ();
 }
 
 DEFUN (__diaryfile__, , ,