From 7623dae73c71fd3bfc2b820e6c98eb99b36dba44 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Wed, 10 Mar 2021 19:41:43 -0500 Subject: fix a missing initializer Signed-off-by: Thomas E. Dickey --- src/cursor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cursor.c b/src/cursor.c index 5d6b169..9ade0f4 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -805,8 +805,10 @@ _XcursorCreateGlyphCursor(Display *dpy, Cursor _XcursorCreateFontCursor (Display *dpy, unsigned int shape) { - static XColor _Xconst foreground = { 0, 0, 0, 0 }; /* black */ - static XColor _Xconst background = { 0, 65535, 65535, 65535 }; /* white */ +#define DATA(c) { 0UL, c, c, c, 0, 0 } + static XColor _Xconst foreground = DATA(0); /* black */ + static XColor _Xconst background = DATA(65535); /* white */ +#undef DATA /* * the cursor font contains the shape glyph followed by the mask -- cgit v1.2.1