mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
menu: try other paths (and fix memory leak) if fopen() fails
This commit is contained in:
parent
5979cc137a
commit
3ca1e94b1f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue