[gnome-flashback/gnome-3-28] shell: use g_strcmp0 which is null safe, instead of g_str_equal
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback/gnome-3-28] shell: use g_strcmp0 which is null safe, instead of g_str_equal
- Date: Thu, 11 Oct 2018 16:47:39 +0000 (UTC)
commit 131ec70dbe1efe864a0ec3e241d6c05bbfe237c4
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]