[Xfce4-commits] <xfce4-panel:devel> Fix segfault because desktop info is not null.
Nick Schermer
noreply at xfce.org
Sun Feb 14 14:06:01 CET 2010
Updating branch refs/heads/devel
to 447389333618d99fe5a0469ada66bcdbebf113b5 (commit)
from 0f249074e9a61777bb0fc137bd40216413e1c808 (commit)
commit 447389333618d99fe5a0469ada66bcdbebf113b5
Author: Nick Schermer <nick at xfce.org>
Date: Sun Feb 14 14:04:50 2010 +0100
Fix segfault because desktop info is not null.
plugins/directorymenu/directorymenu.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/plugins/directorymenu/directorymenu.c b/plugins/directorymenu/directorymenu.c
index bb5f898..b880167 100644
--- a/plugins/directorymenu/directorymenu.c
+++ b/plugins/directorymenu/directorymenu.c
@@ -773,6 +773,7 @@ directory_menu_plugin_menu_load (GtkWidget *menu,
#ifdef HAVE_GIO_UNIX
/* for native desktop files we make an exception and try
* to load them like a normal menu */
+ desktopinfo = NULL;
if (G_UNLIKELY (file_type != G_FILE_TYPE_DIRECTORY
&& g_file_is_native (file)
&& g_str_has_suffix (display_name, ".desktop")))
More information about the Xfce4-commits
mailing list