From 97365e4e3e02e0a57369a917686b04a75f99f030 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 5 Dec 2024 17:32:59 +0100 Subject: [PATCH] panel-embed: avoid a compilation warning --- tools/embed.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/embed.c b/tools/embed.c index 99040bb..0dfc4ca 100644 --- a/tools/embed.c +++ b/tools/embed.c @@ -96,6 +96,8 @@ static gboolean _embed_on_can_read(GIOChannel * channel, GIOCondition condition, char * p; (void) data; + if(condition != G_IO_IN) + return FALSE; /* should not happen */ status = g_io_channel_read_line(channel, &str, &length, NULL, &error); switch(status) {