summaryrefslogtreecommitdiff
path: root/gdk/gdk.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-02-04 00:29:51 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-02-04 00:29:51 -0500
commit0eba8335957c3f8396f2bbfdab210e3d3662b04e (patch)
tree4eb052fed03d604ba3035d3a06087ef944167aff /gdk/gdk.c
parent1e0ea21297b46ac8bc879ff2b23ed9d0d34b5d5f (diff)
downloadgtk+-0eba8335957c3f8396f2bbfdab210e3d3662b04e.tar.gz
gdk: Remove a redundant check
We already know desktop_notification_id is not NULL. Pointed out in https://www.viva64.com/en/b/0793/
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r--gdk/gdk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 953079cdd5..a0938af58a 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -173,7 +173,7 @@ stash_desktop_startup_notification_id (void)
if (!g_utf8_validate (desktop_startup_id, -1, NULL))
g_warning ("DESKTOP_STARTUP_ID contains invalid UTF-8");
else
- startup_notification_id = g_strdup (desktop_startup_id ? desktop_startup_id : "");
+ startup_notification_id = g_strdup (desktop_startup_id);
}
/* Clear the environment variable so it won't be inherited by