Diff between 3665ba4403b9b8ba48ce853e8193916117744991 and 4c3dec8abfde7e16494b552a4a777ef28866dc40
Changed Files
| File | Additions | Deletions | Status |
| attrib/gattrib.c | +7 | -1 | modified |
Full Patch
diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index 6f6942f..0806101 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -313,8 +313,14 @@ static gboolean can_write_data(GIOChannel *io, GIOCondition cond,
iostat = g_io_channel_write_chars(io, (gchar *) cmd->pdu, cmd->len,
&len, &gerr);
- if (iostat != G_IO_STATUS_NORMAL)
+ if (iostat != G_IO_STATUS_NORMAL) {
+ if (gerr) {
+ error("%s", gerr->message);
+ g_error_free(gerr);
+ }
+
return FALSE;
+ }
if (cmd->expected == 0) {
g_queue_pop_head(queue);