1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-30 06:50:31 +02:00

Fix port-clear-stream-start-for-bom-read logic.

* libguile/ports.c (scm_port_clear_stream_start_for_bom_read): Fix
  logic.
This commit is contained in:
Andy Wingo 2016-05-10 15:36:06 +02:00
parent 837a7e0810
commit 502e3a2213

View file

@ -2370,13 +2370,6 @@ SCM_DEFINE (scm_port_clear_stream_start_for_bom_read,
SCM_VALIDATE_PORT (1, port);
pti = SCM_PORT_GET_INTERNAL (port);
if (!pti->at_stream_start_for_bom_read)
return SCM_BOOL_F;
/* Maybe slurp off a byte-order marker. */
pt = SCM_PTAB_ENTRY (port);
pti->at_stream_start_for_bom_read = 0;
if (!pti->at_stream_start_for_bom_read)
return SCM_BOOL_F;