[nautilus-actions] FMAICommandTab: fix segfault when there is no profile



commit 8355410c6a3181459f3d32d0e9c0e333b09f183f
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]