Diff between 877dbcdb0bf125696c0753158906ab71d53b9e3f and 5acde7b7efc51e18ffeb3d8cafe59beaf9b68631
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +5 | -0 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 18543ee..6fec701 100644
--- a/src/device.c
+++ b/src/device.c
@@ -3267,6 +3267,11 @@ static void att_connect_cb(GIOChannel *io, GError *gerr, gpointer user_data)
}
attrib = g_attrib_new(io);
+ if (!attrib) {
+ error("Unable to create new GAttrib instance");
+ goto done;
+ }
+
device->attachid = attrib_channel_attach(attrib);
if (device->attachid == 0)
error("Attribute server attach failure!");