changeset 22141:ed6104a78ebf

kbhit: return an empty string if not running interactively (bug #48541) * sysdep.cc (Fkbhit): Return an empty string if not running interactively.
author Mike Miller <mtmiller@octave.org>
date Mon, 18 Jul 2016 11:42:20 -0700
parents 18eae417ffec
children 62208397b99e
files libinterp/corefcn/sysdep.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/sysdep.cc	Mon Jul 11 19:02:59 2016 +0200
+++ b/libinterp/corefcn/sysdep.cc	Mon Jul 18 11:42:20 2016 -0700
@@ -720,7 +720,7 @@
 @seealso{input, pause}
 @end deftypefn */)
 {
-  octave_value retval;
+  octave_value retval = "";
 
   // FIXME: add timeout and default value args?