mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-20 10:27:20 +02:00
fe3c3f50da
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
25 lines
755 B
Diff
25 lines
755 B
Diff
From 1828b0bf6a0193cf51bad92c034cdff0cf39953d Mon Sep 17 00:00:00 2001
|
|
From: Andriy Grytsenko <andrej@rep.kiev.ua>
|
|
Date: Thu, 4 Sep 2014 05:02:42 +0300
|
|
Subject: [PATCH 1/2] Fix crash in case libmenu-cache returned empty menu.
|
|
|
|
---
|
|
src/lxlauncher.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/lxlauncher.c b/src/lxlauncher.c
|
|
index d48e994..9d5a516 100644
|
|
--- a/src/lxlauncher.c
|
|
+++ b/src/lxlauncher.c
|
|
@@ -697,6 +697,8 @@ static void create_notebook_pages()
|
|
GSList* l;
|
|
|
|
// build pages for toplevel groups
|
|
+ if (root_dir == NULL)
|
|
+ return;
|
|
#ifdef HAVE_MENU_CACHE_DIR_LIST_CHILDREN /* menu-cache 0.4.0 or newer */
|
|
children = menu_cache_dir_list_children(root_dir);
|
|
for( l = children; l; l = l->next )
|
|
--
|
|
2.1.0
|
|
|