From 3ca1e94b1f068ff46558848d971e6a7d83af97d9 Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Mon, 8 Jul 2024 11:04:57 -0400 Subject: [PATCH] menu: try other paths (and fix memory leak) if fopen() fails --- src/menu/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu/menu.c b/src/menu/menu.c index d456fb01..b38c25e1 100644 --- a/src/menu/menu.c +++ b/src/menu/menu.c @@ -671,7 +671,7 @@ parse_xml(const char *filename, struct server *server) struct path *path = wl_container_of(elm, path, link); FILE *stream = fopen(path->string, "r"); if (!stream) { - return; + continue; } wlr_log(WLR_INFO, "read menu file %s", path->string); parse_stream(server, stream); -- 2.52.0