From a6bbc9663d33abe1868315a947310f90fb853a5b Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Tue, 5 Dec 2023 09:57:57 +0100 Subject: [PATCH] xwayland: Use simpler initialization syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the simpler form `{ 0 }` instead of `{ '\0', }` for the initialization of the output name buffer. No functional change. Signed-off-by: Olivier Fourdan Acked-by: Michel Dänzer --- hw/xwayland/xwayland-output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c index c9ff5087d..890dd7418 100644 --- a/hw/xwayland/xwayland-output.c +++ b/hw/xwayland/xwayland-output.c @@ -834,7 +834,7 @@ xwl_output_create(struct xwl_screen *xwl_screen, uint32_t id, Bool with_xrandr, uint32_t version) { struct xwl_output *xwl_output; - char name[MAX_OUTPUT_NAME] = { '\0', }; + char name[MAX_OUTPUT_NAME] = { 0 }; xwl_output = calloc(1, sizeof *xwl_output); if (xwl_output == NULL) {