changeset 20878:90f241188941

2015 Code Sprint: toplev.cc: use ovl ().
author Rik <rik@octave.org>
date Sat, 12 Dec 2015 11:21:58 -0800
parents 7810a10772e0
children 5357423bca0a
files libinterp/corefcn/toplev.cc
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/toplev.cc	Sat Dec 12 11:21:47 2015 -0800
+++ b/libinterp/corefcn/toplev.cc	Sat Dec 12 11:21:58 2015 -0800
@@ -960,8 +960,7 @@
       else
         cmd_status = 127;
 
-      retval(1) = output_buf.str ();
-      retval(0) = cmd_status;
+      retval = ovl (cmd_status, output_buf.str ());
     }
   else
     error ("system: unable to start subprocess for '%s'", cmd_str.c_str ());