Fix input/output port typo.
authorNeil Jerram <neil@ossau.uklinux.net>
Wed, 8 Jan 2003 21:36:20 +0000 (21:36 +0000)
committerNeil Jerram <neil@ossau.uklinux.net>
Wed, 8 Jan 2003 21:36:20 +0000 (21:36 +0000)
guile-readline/ChangeLog
guile-readline/readline.c

index 024f788..e48e158 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-08  Neil Jerram  <neil@ossau.uklinux.net>
+
+       * readline.c (scm_readline): Check that scm_cur_outp is an output
+       port, not an input one.
+
 2002-12-08  Rob Browning  <rlb@defaultvalue.org>
 
        * configure.in (GUILE_EFFECTIVE_VERSION): AC_SUBST.
index 89fa66f..07c3659 100644 (file)
@@ -184,7 +184,7 @@ SCM_DEFINE (scm_readline, "%readline", 0, 4, 0,
                      SCM_EOL);
     }
   
-  if (!((SCM_UNBNDP (outp) && SCM_OPINFPORTP (scm_cur_outp))
+  if (!((SCM_UNBNDP (outp) && SCM_OPOUTFPORTP (scm_cur_outp))
        || SCM_OPOUTFPORTP (outp)))
     {
       --in_readline;