summaryrefslogtreecommitdiffstats
path: root/gatchat/gathdlc.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-06-29 11:46:40 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-06-29 11:46:40 -0500
commit295270b4be076338c2b90224327d707da868f7f2 (patch)
tree449308dcfab318985a1a60dc7aa559f4a995b917 /gatchat/gathdlc.c
parentaca0fdf87f48f2c2766c014f3f1815b2ebf8e63b (diff)
downloadofono-295270b4be076338c2b90224327d707da868f7f2.tar.bz2
hdlc: Stop recording packets to stdout (fd = 0)
Diffstat (limited to 'gatchat/gathdlc.c')
-rw-r--r--gatchat/gathdlc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c
index 735a9d43..08a19392 100644
--- a/gatchat/gathdlc.c
+++ b/gatchat/gathdlc.c
@@ -221,11 +221,11 @@ GAtHDLC *g_at_hdlc_new_from_io(GAtIO *io)
if (!hdlc->decode_buffer)
goto error;
+ hdlc->record_fd = -1;
+
hdlc->io = g_at_io_ref(io);
g_at_io_set_read_handler(hdlc->io, new_bytes, hdlc);
- hdlc->record_fd = -1;
-
return hdlc;
error: