summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-11-28 01:23:10 -0800
committerKaz Kylheku <kaz@kylheku.com>2013-11-28 01:23:10 -0800
commit2cca0f202343044e81785c7612da105f528217fd (patch)
tree8e929f2a658dff2b1c49dd600a1719ea91e30b9c /stream.c
parent4d5a53b6f2811e82e313b979e4b53fd2071f2107 (diff)
downloadtxr-2cca0f202343044e81785c7612da105f528217fd.tar.gz
txr-2cca0f202343044e81785c7612da105f528217fd.tar.bz2
txr-2cca0f202343044e81785c7612da105f528217fd.zip
* stream.c (make_stdio_stream_common): Initialize new
mode member of struct stdio_ops to nil.
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream.c b/stream.c
index c90d4c18..41876d85 100644
--- a/stream.c
+++ b/stream.c
@@ -873,6 +873,7 @@ static val make_stdio_stream_common(FILE *f, val descr, struct cobj_ops *ops)
val stream = cobj((mem_t *) h, stream_s, ops);
h->f = f;
h->descr = descr;
+ h->mode = nil;
utf8_decoder_init(&h->ud);
h->pid = 0;
return stream;