diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-02-04 00:29:51 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-02-07 11:44:46 -0500 |
commit | acb3e489cb1b067124252c98d009786a6004ae47 (patch) | |
tree | fe15695a09cd232579b8272362fd537873d40acb | |
parent | 44cb05cbf63dea50f13fe5829749503592221517 (diff) | |
download | gtk+-acb3e489cb1b067124252c98d009786a6004ae47.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/
-rw-r--r-- | gdk/gdk.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |