Fix unchecked return value

This commit is contained in:
Colin Leroy 2015-10-08 19:13:17 +02:00
parent 542c66f3f8
commit ea54e7760f

View file

@ -9443,7 +9443,10 @@ static gboolean compose_input_cb(GIOChannel *source, GIOCondition condition,
debug_print("Compose: input from monitoring process\n");
g_io_channel_read_chars(source, buf, sizeof(buf), &bytes_read, NULL);
if (g_io_channel_read_chars(source, buf, sizeof(buf), &bytes_read, NULL) != G_IO_STATUS_NORMAL) {
bytes_read = 0;
buf[0] = '\0';
}
g_io_channel_shutdown(source, FALSE, NULL);
g_io_channel_unref(source);