From: Matthias Clasen Date: Wed, 4 Jan 2023 21:35:56 +0000 (-0500) Subject: x11: Make a call NULL-safe X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~8^2~101^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8349ae2bc400b46aa1de38c21d103eea52e7c7ae;p=gtk4.git x11: Make a call NULL-safe Make it safe to call gdk_x11_app_launch_context_get_startup_notify_id with a NULL info. --- diff --git a/gdk/x11/gdkapplaunchcontext-x11.c b/gdk/x11/gdkapplaunchcontext-x11.c index 4284d182cd..7f004f7dca 100644 --- a/gdk/x11/gdkapplaunchcontext-x11.c +++ b/gdk/x11/gdkapplaunchcontext-x11.c @@ -283,6 +283,9 @@ gdk_x11_app_launch_context_get_startup_notify_id (GAppLaunchContext *context, GFileInfo *fileinfo; GdkAppLaunchContext *ctx; + if (!info) + return NULL; + ctx = GDK_APP_LAUNCH_CONTEXT (context); display = ctx->display;