[Spice-commits] server/red-record-qxl.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Mon Mar 12 13:01:06 UTC 2018
server/red-record-qxl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9dd9ee246817b0739a9144606bdfc9835fb96b1d
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Mon Mar 12 12:29:51 2018 +0000
red-record-qxl: fix clang warning
Fix clang warning:
red-record-qxl.c:893:13: error: variable 'fd_in' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
if (ret)
This is technically impossible but is not on a hot path.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/server/red-record-qxl.c b/server/red-record-qxl.c
index 48b3169f..5f6b7aeb 100644
--- a/server/red-record-qxl.c
+++ b/server/red-record-qxl.c
@@ -886,7 +886,7 @@ RedRecord *red_record_new(const char *filename)
GError *error = NULL;
GPid child_pid;
gboolean ret;
- gint fd_in;
+ gint fd_in = -1;
ret = g_shell_parse_argv(filter, &argc, &argv, &error);
More information about the Spice-commits
mailing list