diff src/defaults.cc @ 11298:cb94bdc74670

defaults.cc (FEXEC_PATH): only call set_exec_path if nargin is greater than zero
author John W. Eaton <jwe@octave.org>
date Fri, 26 Nov 2010 02:44:24 -0500
parents e2a4f3478b7c
children fd0a3ac60b0e
line wrap: on
line diff
--- a/src/defaults.cc	Thu Nov 25 20:32:58 2010 +0100
+++ b/src/defaults.cc	Fri Nov 26 02:44:24 2010 -0500
@@ -433,7 +433,8 @@
 {
   octave_value retval = SET_NONEMPTY_INTERNAL_STRING_VARIABLE (EXEC_PATH);
 
-  set_exec_path (VEXEC_PATH);
+  if (args.length () > 0)
+    set_exec_path (VEXEC_PATH);
 
   return retval;
 }