diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-03-07 06:36:15 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-03-07 06:36:15 -0800 |
commit | 6b252ddb8818fb7a5e7923c442d1a9022bc07b9d (patch) | |
tree | 486504b6743187b28e6bce8f64c1d494a1da8916 /stream.c | |
parent | ca5c17eb1acd8b3f0efb62d6952dfa8bf5551756 (diff) | |
download | txr-6b252ddb8818fb7a5e7923c442d1a9022bc07b9d.tar.gz txr-6b252ddb8818fb7a5e7923c442d1a9022bc07b9d.tar.bz2 txr-6b252ddb8818fb7a5e7923c442d1a9022bc07b9d.zip |
gc bugs: more instances of wrong mutations.
* socket.c (dgram_set_sock_peer): Assign to struct
dgram_stream using using set macro.
* stream.c (stdio_set_sock_peer): Assign to struct
stdio_handle peer using set macro.
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -770,7 +770,7 @@ static val stdio_get_sock_peer(val stream) static val stdio_set_sock_peer(val stream, val peer) { struct stdio_handle *h = coerce(struct stdio_handle *, stream->co.handle); - return h->peer = peer; + return set(mkloc(h->peer, stream), peer); } #endif |