HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a9d9e3
)
Fix uninitialized variable error in some peek-char error cases
author
Andy Wingo
<wingo@pobox.com>
Wed, 27 Nov 2013 18:50:13 +0000
(19:50 +0100)
committer
Andy Wingo
<wingo@pobox.com>
Wed, 27 Nov 2013 18:50:13 +0000
(19:50 +0100)
* libguile/ports.c (scm_peek_char): Don't require error cases to
set *len. Fixes a bug caught by GCC whereby an EOF while reading a
multibyte character with iconv would leave len uninitialized.
libguile/ports.c
patch
|
blob
|
blame
|
history
diff --git
a/libguile/ports.c
b/libguile/ports.c
index
44416cb
..
960dfa8
100644
(file)
--- a/
libguile/ports.c
+++ b/
libguile/ports.c
@@
-2221,7
+2221,7
@@
SCM_DEFINE (scm_peek_char, "peek-char", 0, 1, 0,
scm_t_wchar c;
char bytes[SCM_MBCHAR_BUF_SIZE];
long column, line;
- size_t len;
+ size_t len
= 0
;
if (SCM_UNBNDP (port))
port = scm_current_input_port ();