[gnome-flashback/gnome-3-30] shell: use g_strcmp0 which is null safe, instead of g_str_equal



commit 1e9dd62ba35022cfa5649f851cf6b420b5acf996
Author: Dmitry Shachnev <mitya57 gmail com>
Date:   Thu Oct 11 16:32:56 2018 +0000

    shell: use g_strcmp0 which is null safe, instead of g_str_equal
    
    https://gitlab.gnome.org/GNOME/gnome-flashback/issues/13
    
    
    (cherry picked from commit bd970ecf9cbebebcabc8befad2df83132a1920c4)

 gnome-flashback/libshell/flashback-shell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnome-flashback/libshell/flashback-shell.c b/gnome-flashback/libshell/flashback-shell.c
index 47136fb..f3ffa09 100644
--- a/gnome-flashback/libshell/flashback-shell.c
+++ b/gnome-flashback/libshell/flashback-shell.c
@@ -377,7 +377,7 @@ handle_ungrab_accelerator (FlashbackDBusShell    *dbus_shell,
   sender = (gchar *) g_hash_table_lookup (shell->grabbed_accelerators,
                                           GUINT_TO_POINTER (action));
 
-  if (g_str_equal (sender, g_dbus_method_invocation_get_sender (invocation)))
+  if (g_strcmp0 (sender, g_dbus_method_invocation_get_sender (invocation)) == 0)
     {
       success = real_ungrab (shell, action);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]