summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: