[nautilus-actions/file-manager-actions] FMAICommandTab: fix segfault when there is no profile
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions/file-manager-actions] FMAICommandTab: fix segfault when there is no profile
- Date: Tue, 14 Feb 2017 16:48:55 +0000 (UTC)
commit 916a9e9f2fc4dc009e6c6713287375786274ba4e
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Feb 13 22:51:37 2017 +0100
FMAICommandTab: fix segfault when there is no profile
src/ui/fma-icommand-tab.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/fma-icommand-tab.c b/src/ui/fma-icommand-tab.c
index 94bfaf8..88f73d0 100644
--- a/src/ui/fma-icommand-tab.c
+++ b/src/ui/fma-icommand-tab.c
@@ -330,7 +330,7 @@ on_tree_selection_changed( FMATreeView *tview, GList *selected_items, FMAIComman
MAIN_PROP_EDITABLE, &editable,
NULL );
g_debug( "%s: profile=%p (%s)",
- thisfn, ( void * ) profile, G_OBJECT_TYPE_NAME( profile ));
+ thisfn, ( void * ) profile, profile ? G_OBJECT_TYPE_NAME( profile ) : "null" );
enable_tab = ( profile != NULL );
fma_main_tab_enable_page( FMA_MAIN_WINDOW( instance ), TAB_COMMAND, enable_tab );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]