From 6c6cbbdc5739747cf052c92ac926f1156417bee0 Mon Sep 17 00:00:00 2001 From: Collin Date: Fri, 18 Jul 2025 07:52:21 -0500 Subject: [PATCH] screen: initialize rootDepth to zero to fix uninitialized-variable warning --- hw/xnest/Screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index 7bf522a550..c38a538a30 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -165,7 +165,7 @@ xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[]) { unsigned long valuemask; VisualID defaultVisual = 0; - int rootDepth; + int rootDepth = 0; miPointerScreenPtr PointPriv; if (!dixRegisterPrivateKey